Setting up the project and creating a data model
First, create a new Xcode project and call it Find Words. Then, in the GitHub repository, go to the Chapter 12 and Chapter 13 folders; this folder will include three subfolders called Language Data, Images, and Sound. Add the Images folder to the Assets catalog, and the other folders to the Project navigator.
Next, we will create a data model file to hold the data for the https://github.com/PacktPublishing/Animating-SwiftUI-Applications app – to do this, press Command + N, choose the SwiftUI file type, and call it DataModel. In this file, import SwiftUI by adding the following code at the top of the file:
import SwiftUI
As we have done before, we add a class to hold all of the properties and methods. We’ll call the class DataModel, and it needs to conform to the ObservableObject protocol in order for us to access this data later on. Then, we’ll add the properties we need:
class DataModel: ObservableObject...