Build great-looking apps across all Apple platforms with Swift
commercial softwarefree
SwiftUI is Apple's declarative UI framework for building apps on every Apple platform (iOS, iPadOS, macOS, watchOS, tvOS and visionOS) in Swift, with one set of tools and APIs. You state what the interface should show, and SwiftUI handles layout, state changes and animation, including ready-made effects. It works alongside UIKit and AppKit, so existing apps can adopt it a screen at a time and new apps can mix in their controls, and Xcode previews show views live as you edit them, interactively or in different device settings. It ships in Apple's SDKs with Xcode, which is free on the Mac App Store.
Problems it solves
- build an iPhone app's interface in Swift with less code
- share one UI codebase across iOS, macOS and watchOS
- add a modern declarative UI to an existing UIKit app
- animate views in an Apple app with a few lines of code
Features
- declarative syntax
- all Apple platforms
- built-in animations
- works with UIKit and AppKit
- Xcode live previews
Alternatives
The same job
These do what SwiftUI does.
- Jetpack Compose Android's recommended modern toolkit for building native UI