In previous chapters, you created the User Interface (UI) for the Let's Eat app using storyboards. The process involved dragging objects representing views to 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 a user interface 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 new version of the Restaurant Detail screen using SwiftUI. Since SwiftUI is very different from storyboards and is very early in its development, you will not be modifying the LetsEat app you have been working...