Skip to content

Get Keyboard height incorrect #2165

@Dance592

Description

@Dance592

Describe the bug:
The app gets an incorrect keyboard height on the first use of the keyboard each time it launches, especially when a third-party keyboard is used as the default keyboard.

To Reproduce
Steps to reproduce the behavior:
IQKeyboardManager.shared.isEnabled = true
IQKeyboardToolbarManager.shared.isEnabled = true

NotificationCenter.default.addObserver(self,
selector: #selector(keyBoardWillShow(_:)),
name: UIResponder.keyboardWillShowNotification,
object: nil)

Expected behavior:
keyBoardWillShow Called 2 times, the keyboard height obtained via keyboardFrameEndUserInfoKey is incorrect.
Setting IQKeyboardManager.shared.isEnabled = false will make everything work normally.

Versions

Xcode: 16.4
Library Version: 8.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions