Skip to content

Commit b173a1f

Browse files
committed
fix: support floating keyboard
1 parent bfc242a commit b173a1f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/KeyboardLayoutGuide/KeyboardLayoutGuide.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ extension Notification {
189189

190190
let keyboardMinY = keyboardFrame.cgRectValue.minY
191191

192+
if keyboardMinY == 0 {
193+
return 0
194+
}
195+
192196
// Weirdly enough UIKeyboardFrameEndUserInfoKey doesn't have the same behaviour
193197
// in ios 10 or iOS 11 so we can't rely on v.cgRectValue.width
194198
if let pvc = Keyboard.shared.presentedViewController,

0 commit comments

Comments
 (0)