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") {
|
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user