The focus of this book is ultimately on the Swift programming language itself, as opposed to the use of the language to produce apps for Apple platforms or to build server-side services. That being said, it can't be ignored that the vast majority of the Swift code being written is to build, or build upon, iOS and iPadOS apps.
In this recipe, we will take a brief look at how we can interact with Apple's Cocoa Touch frameworks using Swift and begin to build and create our very own iOS app.
Cocoa Touch is a name given to the collection of UI frameworks available as part of the iOS SDK. Its name derives from the Cocoa framework on macOS, which provides UI elements for macOS apps. While Cocoa on macOS is a framework in its own right, Cocoa Touch is a collection of frameworks that provide UI elements for iOS apps and handle the app's life cycle; the core of these frameworks is UIKit.
Getting ready
First, we'll need to create a new iOS...