Add scroll to dismiss keyboard

This commit is contained in:
Arkadiusz Fal 2022-12-21 21:16:53 +01:00
parent 809bcd183a
commit f86fd37c50

View File

@ -27,6 +27,10 @@ struct SettingsView: View {
var body: some View { var body: some View {
settings settings
.alert(isPresented: $model.presentingAlert) { model.alert } .alert(isPresented: $model.presentingAlert) { model.alert }
#if os(iOS)
.backport
.scrollDismissesKeyboard()
#endif
} }
var settings: some View { var settings: some View {