Move Button & View when Keyboard Appears in Swift
问题 I am trying to move a button that is initially at the bottom of the view, but when a text field is selected and the keyboard rendered, move the button up with it. If you have used the app Robinhood, its the same functionality when signing in or signing up. Several other posts have not been able to solve this for me. Move view with keyboard using Swift Is there an external repo or solution that has already solved this feature? 回答1: First of write the below code into the ui view extension.