ios: paste image (#710)

This commit is contained in:
Evgeny Poberezkin
2022-05-30 09:03:56 +01:00
committed by GitHub
parent 71fa2bfec0
commit 23b75f11fe
@@ -176,6 +176,11 @@ struct ComposeView: View {
Button("Choose from library") {
showImagePicker = true
}
if UIPasteboard.general.hasImages {
Button("Paste image") {
chosenImage = UIPasteboard.general.image
}
}
Button("Choose file") {
showFileImporter = true
}