Creating a SwiftUI Xcode Project
A SwiftUI Xcode project is created in the same way as a regular Xcode project, but you configure it to use SwiftUI instead of storyboards. As you will see, the user interface is generated entirely in code, and you'll be able to see changes in the user interface immediately as you modify your code.
Important information
You can watch a video of Apple's SwiftUI presentation at WWDC 2020 at https://developer.apple.com/videos/play/wwdc2020/10119.
Apple's official SwiftUI documentation can be found online at https://developer.apple.com/documentation/swiftui.
Let's begin by creating a new SwiftUI Xcode project. Follow these steps:
- Create a new Xcode project.
- Click iOS. Select the App template, and then click Next:
- The Choose options for your new project: screen appears:
Configure this screen...