SwiftUI - Apple Developer Documentation

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Discover Design Develop Distribute Support Account

Framework

SwiftUI
Declare the user interface and behavior for your app on every platform. SDKs

iOS 13.0+

macOS 10.15+

Overview Mac Catalyst 13.0+

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

Essentials Learn to Make Apps with SwiftUI


Follow a series of guided tutorials to learn to make apps using SwiftUI and Xcode.

DocumentationSwiftUI
if
Language: Swift
API Changes: Show 

User Interface Views and Controls


Present your content onscreen and handle user interactions.

View Layout and Presentation


Combine views in stacks, generate groups and lists of views dynamically, and define
view presentations and hierarchy.

Drawing and Animation


Enhance your views with colors, shapes, and shadows, and customize animated
transitions between view states.

Framework Integration
Integrate SwiftUI views into existing apps, and embed AppKit, UIKit, and WatchKit views
and controllers into SwiftUI view hierarchies.

Data and Events State and Data Flow


Control and respond to the flow of data and changes within your appʼs models.

Gestures
Define interactions from taps, clicks, and swipes to fine-grained gestures.

Previews in Xcode Previews


Generate dynamic, interactive previews of your custom views.

You might also like