Skip to content

Commit

Permalink
Unwrapped additionalBottomSpace()
Browse files Browse the repository at this point in the history
  • Loading branch information
aldrincb committed Mar 25, 2021
1 parent bb69888 commit 36e4db6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/KeyboardManager/KeyboardManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,9 @@ open class KeyboardManager: NSObject, UIGestureRecognizerDelegate {

var yCoordinateDirectlyAboveKeyboard = -frame.height

if shouldApplyAdditionBottomSpaceToInteractiveDismissal {
yCoordinateDirectlyAboveKeyboard -= additionalBottomSpace?() ?? 0
if shouldApplyAdditionBottomSpaceToInteractiveDismissal,
let additionalBottomSpace = additionalBottomSpace {
yCoordinateDirectlyAboveKeyboard -= additionalBottomSpace()
}

/// If a tab bar is shown, letting this number becoming > 0 makes it so the accessoryview disappears below the tab bar. setting the max value to 0 prevents that
Expand Down

0 comments on commit 36e4db6

Please sign in to comment.