SwiftUI - Apple Developer Documentation
SwiftUI - Apple Developer Documentation
SwiftUI - Apple Developer Documentation
Framework
SwiftUI
Declare the user interface and behavior for your app on every platform. SDKs
iOS 13.0+
macOS 10.15+
tvOS 13.0+
SwiftUI provides views, controls, and layout structures for declaring your app's user interface.
The framework provides event handlers for delivering taps, gestures, and other types of input watchOS 6.0+
to your app, and tools to manage the flow of data from your app's models down to the views
and controls that users will see and interact with. On This Page
Overview
Create your own custom views that conform to the View protocol, and compose them with
Topics
SwiftUI views for displaying text, images, and custom shapes using stacks, lists, and more.
Apply powerful modifiers to built-in views and your own views to customize their rendering and
interactivity. Share code between apps on multiple platforms with views and controls that adapt
to their context and presentation.
You can integrate SwiftUI views with objects from the UIKit, AppKit, and WatchKit frameworks
to take further advantage of platform-specific functionality. You can also customize
accessibility support in SwiftUI, and localize your appʼs interface for different languages,
countries, or cultural regions.
Topics
DocumentationSwiftUI
if
Language: Swift
API Changes: Show
Framework Integration
Integrate SwiftUI views into existing apps, and embed AppKit, UIKit, and WatchKit views
and controllers into SwiftUI view hierarchies.
Gestures
Define interactions from taps, clicks, and swipes to fine-grained gestures.