Fixed that on iOS 14 AdaptsToKeyboard isn't needed anymore but just covers dialog
This commit is contained in:
parent
ebce0000c5
commit
ac8824634e
|
@ -5,8 +5,14 @@ import Combine
|
||||||
|
|
||||||
extension View {
|
extension View {
|
||||||
|
|
||||||
|
@ViewBuilder
|
||||||
func fixKeyboardCoversLowerPart() -> some View {
|
func fixKeyboardCoversLowerPart() -> some View {
|
||||||
return self.modifier(AdaptsToKeyboard())
|
if #available(iOS 14.0, *) {
|
||||||
|
self
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
self.modifier(AdaptsToKeyboard())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func hideNavigationBar() -> some View {
|
func hideNavigationBar() -> some View {
|
||||||
|
|
Loading…
Reference in New Issue