Weird - keyboard's still on-screen

I followed the steps on p.256.

But when I ran the app and went to the detail screen, I tapped outside a text field (labels, the date value, empty space), and the keyboard sticks around.

Did anyone else see this?

Make sure your Action connection is in the correct format as the book and that you added listing 12.6:

@IBAction func backgroundTapped(_ sender: UITapGestureRecognizer) {
view.endEditing(true)

@Caps5150 I ran into the same problem. Did you find a solution?

I just realized I dragged the tap gesture recognizer on the date label instead of the background. Now that it’s changed, works great.