Skip to content

Commit

Permalink
fix: support floating keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
toshi0383 committed Dec 9, 2022
1 parent bfc242a commit b173a1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/KeyboardLayoutGuide/KeyboardLayoutGuide.swift
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ extension Notification {

let keyboardMinY = keyboardFrame.cgRectValue.minY

if keyboardMinY == 0 {
return 0
}

// Weirdly enough UIKeyboardFrameEndUserInfoKey doesn't have the same behaviour
// in ios 10 or iOS 11 so we can't rely on v.cgRectValue.width
if let pvc = Keyboard.shared.presentedViewController,
Expand Down

0 comments on commit b173a1f

Please sign in to comment.