Scroll View School, Episode 18: Challenge: Adding Keyboard Insets | Kodeco

In this video challenge, your task is to add some keyboard insets to a new sample project. Give it a try!


This is a companion discussion topic for the original entry at https://www.kodeco.com/9223-scroll-view-school/lessons/18

There is one bug in this solution.
Probably there should be validation of the keyboard state (if its shown or not), cause if we will tap text field w/o closing it before that extra space will be added on top of the keyboard over and over again

  • No need in redundant ? true : false
    let show = notification.name == UIResponder.keyboardWillShowNotification

(The same point for the previous video)