SwiftUI
- Declarative UI framework
- Launched in 2019
- Focus on modern UI patterns:
- Single Source of Truth
- Reusable views
- Multiplatform
- Dependency Rendering
- Data Binding
- UI expressed in Swift structures
- Visual editor tooling in Xcode
Main Concepts
- App
- Scene
- View
- View Modifier
- Dependencies
- Variables (read-only)
- State variables
- Environment Data
- Dimension Unit: point
- Graphical Assets: PNG, PDF, SVG