ios: allow pasting profile image
This commit is contained in:
parent
f6f3d17383
commit
3e4d4f04ef
@ -93,6 +93,11 @@ struct UserProfile: View {
|
||||
Button("Choose from library") {
|
||||
showImagePicker = true
|
||||
}
|
||||
if UIPasteboard.general.hasImages {
|
||||
Button("Paste image") {
|
||||
chosenImage = UIPasteboard.general.image
|
||||
}
|
||||
}
|
||||
}
|
||||
.fullScreenCover(isPresented: $showTakePhoto) {
|
||||
ZStack {
|
||||
|
Loading…
Reference in New Issue
Block a user