diff --git a/ui/BankingiOSApp/BankingiOSApp/extensions/ViewExtensions.swift b/ui/BankingiOSApp/BankingiOSApp/extensions/ViewExtensions.swift index 3662ac3f..645c3eee 100644 --- a/ui/BankingiOSApp/BankingiOSApp/extensions/ViewExtensions.swift +++ b/ui/BankingiOSApp/BankingiOSApp/extensions/ViewExtensions.swift @@ -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 {