Getting Started with SwiftUI
In previous chapters, you created the user interface (UI) for the JRNL 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 apps across all Apple platforms. Instead of specifying the user interface 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.
Even though this book focuses on UIKit, a working knowledge of SwiftUI is beneficial as some iOS features, such as widgets, can only be implemented using SwiftUI. It also appears that SwiftUI is the way ahead for app development for all Apple platforms, but at present it does not have feature parity with UIKit.
In this chapter...