ios: allow pasting profile image

This commit is contained in:
Evgeny Poberezkin 2023-02-27 17:46:10 +00:00
parent f6f3d17383
commit 3e4d4f04ef

View File

@ -93,6 +93,11 @@ struct UserProfile: View {
Button("Choose from library") { Button("Choose from library") {
showImagePicker = true showImagePicker = true
} }
if UIPasteboard.general.hasImages {
Button("Paste image") {
chosenImage = UIPasteboard.general.image
}
}
} }
.fullScreenCover(isPresented: $showTakePhoto) { .fullScreenCover(isPresented: $showTakePhoto) {
ZStack { ZStack {