Fix transition bug when the keyboard is presented
Compare changes
- Dariusz Rybicki authored
@@ -60,14 +60,20 @@ public final class ProfileCodeController: UIViewController {
This MR improves the transition when navigating from a screen while presenting keyboard.
This should fix the issue: [Registration] UI transition bug when having the keyboard enabled.
OnboardingCodeController
and ProfileCodeController
:
SnapKit
.setNeedsLayout
and layoutIfNeeded
so the view is laid out immediately.OnboardingPhoneController
and ProfilePhoneController
before navigating to next screen.Dismissing the keyboard is not mandatory, but I think it helps to achieve a visually satisfying transition.
Before | After (fix layout) | After (fix layout + dismiss keyboard) |
---|---|---|
before | after-1 | after-2 |