Fixed that on iOS 14 AdaptsToKeyboard isn't needed anymore but just covers dialog

This commit is contained in:
dankito 2020-10-04 22:37:25 +02:00
parent ebce0000c5
commit ac8824634e
1 changed files with 7 additions and 1 deletions

View File

@ -5,8 +5,14 @@ import Combine
extension View {
@ViewBuilder
func fixKeyboardCoversLowerPart() -> some View {
return self.modifier(AdaptsToKeyboard())
if #available(iOS 14.0, *) {
self
}
else {
self.modifier(AdaptsToKeyboard())
}
}
func hideNavigationBar() -> some View {