Chapter 23: Getting Started with SwiftUI
In previous chapters, you created the user interface (UI) for the Let's Eat app using storyboards. The process involved dragging objects representing views onto a storyboard, creating outlets in view controller files, and connecting the two together.
This chapter will focus on SwiftUI, an easy and innovative way to create apps across all Apple platforms. Instead of using storyboards, SwiftUI uses a declarative Swift syntax, and works with new Xcode design tools to keep your code and design in sync. Features such as Dynamic Type, Dark Mode, localization, and accessibility are automatically supported.
In this chapter, you will build a simplified version of the Let's Eat app using SwiftUI. This app will just contain the Restaurant List and Restaurant Detail screens. Since writing apps with SwiftUI is very different from what you have already done, you will not be modifying the LetsEat
project you have been working on. You will create...