SwiftUI
Apple's declarative UI framework for building apps across iOS, iPadOS, macOS, watchOS, tvOS and visionOS.
SwiftUI lets developers describe interfaces as a function of state in Swift, with live previews in Xcode. It shares one UI model across Apple platforms and interoperates with UIKit and AppKit where needed. Each annual OS release expands its capabilities, so supported features depend on the minimum OS version targeted.
- Type
- Framework
- Category
- Mobile
- Maintainer
- Apple
- First released
- 2019
- License
- Proprietary
- Pricing
- Free — Included with Apple's SDKs; publishing to the App Store needs a paid developer account.
- Level
- Intermediate
- Technologies
- swift, swiftui, ios, macos
- Last verified
- 26 Nov 2026
What SwiftUI is used for
- Native iOS and macOS apps
- Widgets and watch apps
- visionOS experiences
Strengths
- Concise declarative code
- Live previews
- Deep platform integration
Limitations
- Apple platforms only
- Newer APIs require recent OS versions
- Some complex UIs still need UIKit
SwiftUI alternatives
How it relates to other tools
- SwiftUI built on Swift