hackiftekhar / IQKeyboardManager

Codeless drop-in universal library allows to prevent issues of keyboard sliding up and cover UITextField/UITextView. Neither need to write any code nor any setup required and much more.
MIT License
16.36k stars 2.4k forks source link

Jumping content for the first time #2031

Open petrykDima opened 2 months ago

petrykDima commented 2 months ago
IQKeyboardManagerSwift (7.0.1)

IOS 17.3 on the real device. On the simulator, it couldn't be reproduced.

I have a view controller inside UINavigationController. If I activate UITextView it jumps for the first time but works well for the second.

If I show UIViewController without UINavigationController - everything works well.

func presentCommentsViewController() {
        let st = UIStoryboard(name: "CommentsMain", bundle: nil)
        let vc = st.instantiateViewController(identifier: "CommentsMainViewController") as CommentsMainViewController
        let nvc = UINavigationController(rootViewController: vc)
        nvc.modalPresentationStyle = .fullScreen

        self.present(nvc, animated: true)
    }
petrykDima commented 2 months ago

https://github.com/hackiftekhar/IQKeyboardManager/assets/43542141/27a41964-626c-48d9-a156-7e19f9a095b4