This sample demonstrates how to start with SwiftUI. You can learn the following things:
- Basic components
- Using Text to replace UILabel
- Using Button to replace UIButton
- Using Image to replace UIImageView
- Using Toggle to replace UISwitch
- Using List to replace UITableView
- Using NavigationView to replace UINavigationController
- Using NavigationLink to route to other scene
- Using HStack, VStack, ZStack to layout UI
- Using Spacer to show a space
- Using Color to replace UIColor
- Using Font to replace UIFont
- Configuring UI style with chain syntax
- Creating custom UI by mixing UIView and View together
- Holding View instance with UIHostingController
- Using State object to change UI state
- Sharing data between views using Environment object