ProfilePictureSelector.swift (651B)
1 // 2 // ProfilePictureSelector.swift 3 // damus 4 // 5 // Created by William Casarin on 2022-05-20. 6 // 7 8 import SwiftUI 9 10 struct ProfilePictureSelector: View { 11 let pubkey: String 12 13 var body: some View { 14 let highlight: Highlight = .custom(Color.white, 2.0) 15 ZStack { 16 ProfilePicView(pubkey: pubkey, size: 80.0, highlight: highlight, profiles: Profiles()) 17 } 18 } 19 } 20 21 struct ProfilePictureSelector_Previews: PreviewProvider { 22 static var previews: some View { 23 let test_pubkey = "ff48854ac6555fed8e439ebb4fa2d928410e0eef13fa41164ec45aaaa132d846" 24 ProfilePictureSelector(pubkey: test_pubkey) 25 } 26 }