Technical requirements
The resource files and completed Xcode project for this chapter are in the Chapter13 folder of the code bundle for this book, which can be downloaded here:
https://github.com/PacktPublishing/iOS-15-Programming-for-Beginners-Sixth-Edition
Take a look at the following video to see the code in action:
Create a new playground and call it CollectionViewBasics. You can use this playground to type in and run all the code in this chapter as you go along. Before you do, let's take a look at the Model-View-Controller design pattern, an approach commonly used to write iOS apps.