Swift: FB Messenger - Handling the Keyboard Showing (Ep 7)

Profile Picture
Published on Apr 22, 2016🌏 Public

Today, I'll show you guys how to properly handle the UI when the keyboard shows itself. We do this by add a text input component into our ChatLogController and animating this view above the keyboard frame. We do all of this by modifying a simple bottom constraint via Auto Layout. Lastly, we also handle the case where the keyboard is dismissed by reanimating the text input view back down to the bottom of the screen. Previous Lessons: How to create Chat Bubbles (Part 1): https://youtu.be/bNtsekO51iQ Chat Bubble with Tails (Part 2): https://youtu.be/kR9cf_K_9Tk Completed source code available here: https://www.letsbuildthatapp.com/cour... Twitter: https://www.twitter.com/buildthatapp