Only the simplest apps consist of a single screen such as the Calculator app. However, most apps usually need two or more screens to display information. In SwiftUI, you can define each screen of your app’s user interface by creating a separate structure. Then you need to provide a way to jump from one screen to another.
16. Using the Navigation View
Get Beginning iPhone Development with SwiftUI: Exploring the iOS SDK now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.