- This Includes robust hack for keyboard dismiss.
- And of course move the textfield up when keyboard appears.
- Drop a UIScrollView to your Storyboard.
- Select UIScrollView, then go to 'Size Inspector' and and disable 'Content Layout Guides'
- Pin Top, Left, Right and Bottom sides of the UIScrollView.
- Place a UITextField on top of UIScrollView and add contraints to place it where you want and additionally add two extra constarints i.e., Pin to Right and Bottom (this will eliminate constraint error)
- That's it.