Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Get Keyboard height incorrect

Open
#2,165 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
32/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
swift
Domain
mobile-dev

Research direction

Start by reproducing the issue with the IQKeyboardManager and IQKeyboardToolbarManager settings, the keyboardWillShowNotification observer, and a third-party keyboard on Xcode 16.4. Compare the first-launch keyboard height and notification count with IQKeyboardManager enabled and disabled. Done means the first keyboard presentation reports the correct height without the extra incorrect notification.

Written by the indexing model from the issue text.

Description

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

Dominant language
Swift
Stars
16.6k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hackiftekhar/IQKeyboardManager

All issues in hackiftekhar/IQKeyboardManager

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.