Post

Replies

Boosts

Views

Activity

Reply to [SwiftUI] Gray view with simple navigation
Actually one simple way of doing it would be to force that the keyboard is hidden without animation. I am able to do that, on a custom textfield level like this: UIView.setAnimationsEnabled(false)                 textField.resignFirstResponder()                 UIView.setAnimationsEnabled(true) But I don't know how to make it such that the bottom view is moved immediately on the bottom of the first view. If keyboard dismiss and the view would happen in an instant without animation, then moving to the next view will be a no issue.
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’21
Reply to [SwiftUI] Gray view with simple navigation
Hi Claude, I agree, it was one of the paths I've tried to solve the issue. If there's no other solution, I think this would be good enough for my scenario. Problem is, I don't know of an easy way to handle that, it seems I need to write some UIKit code to find out when the keyboard is up or down (I'm thinking to register for notifications for keyboarddidhide etc). Is there a more swifty approach to it ?
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’21