Skip to content

v6.0.0

Closed Jan 11, 2024 100% complete
  • Re-implement core-logic of moving view to maintain keyboard distance from textField.
  • Automatic handle safe area, layout guide, layout margin related changes.
  • Not move navigation bar when moving view.

Old Approach:-

  • Previously library was finding the top most controller which is in hierarchy and move that top most controller's view to maintain distance …
  • Re-implement core-logic of moving view to maintain keyboard distance from textField.
  • Automatic handle safe area, layout guide, layout margin related changes.
  • Not move navigation bar when moving view.

Old Approach:-

  • Previously library was finding the top most controller which is in hierarchy and move that top most controller's view to maintain distance between textField and keyboard. Most of the time this is UINavigationController or UITabBarController.
  • We were saving the whole frame of Controller's view and updating whole frame of it's view.
  • This solution is badly affected when safe area, layout guide, layout margin comes with iOS.

New Approach:-

  • With new approach, library will try to pick the current controller and move that current controller's view to maintain distance between textField and keyboard. Most of the time, it's the UIViewcontroller, or top view controller of UINavigationController.
  • We will now save only origin point of UIViewController's view and when we want to update it's frame then we get view size and use new origin and view's size to find it's new frame.
  • If you want to take a look, then please check new_logic branch.

This milestone is closed.

No open issues remain. View closed issues or see open milestones in this repository.