initial CreateAccountView
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
30
damus/Views/ProfilePictureSelector.swift
Normal file
30
damus/Views/ProfilePictureSelector.swift
Normal file
@@ -0,0 +1,30 @@
|
||||
//
|
||||
// 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 {
|
||||
ProfilePicView(pubkey: pubkey, size: 80.0, highlight: highlight, image_cache: ImageCache(), profiles: Profiles())
|
||||
|
||||
Image(systemName: "camera")
|
||||
.font(.title)
|
||||
.foregroundColor(.white)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct ProfilePictureSelector_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
let test_pubkey = "ff48854ac6555fed8e439ebb4fa2d928410e0eef13fa41164ec45aaaa132d846"
|
||||
ProfilePictureSelector(pubkey: test_pubkey)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user