Lecture 214 and 215 of Udemy iOS course.  Code is as per the videos.