Files
damus/damus/Views/ProfilePictureSelector.swift
William Casarin 6bca9eb2be new account fixes
Signed-off-by: William Casarin <jb55@jb55.com>
2022-06-08 13:49:04 -07:00

33 lines
833 B
Swift

//
// ProfilePictureSelector.swift
// damus
//
// Created by William Casarin on 2022-05-20.
//
import SwiftUI
struct ProfilePictureSelector: View {
let pubkey: String
var body: some View {
let highlight: Highlight = .custom(Color.white, 2.0)
ZStack {
/*
Image(systemName: "camera")
.font(.title)
.foregroundColor(.white)
*/
ProfilePicView(pubkey: pubkey, size: 80.0, highlight: highlight, image_cache: ImageCache(), profiles: Profiles())
}
}
}
struct ProfilePictureSelector_Previews: PreviewProvider {
static var previews: some View {
let test_pubkey = "ff48854ac6555fed8e439ebb4fa2d928410e0eef13fa41164ec45aaaa132d846"
ProfilePictureSelector(pubkey: test_pubkey)
}
}