Explore SwiftUI
Visually
Discover SwiftUI components and modifiers through visual examples with ready-to-use code samples. Copy, paste, and ship.
What's New in iOS 26
Discover the latest SwiftUI features and enhancements from WWDC25, including iOS 26, watchOS 26, tvOS 26, visionOS 26, and macOS 26.
Uniform Concentric Rectangle
Create a rectangle with the same corner style set on four corners.
Concentric Rectangle
A concentric rectangle whose corner radii are defined from the same circle center as its parent element. The outermost parent is the device frame.
SliderTickContentForEach
A type of slider content that creates content by iterating over a collection.
Section Index Label and Visibility
Sets the label that is used in a section index to point to this section, typically only a single character long. Changes the visibility of the list section index.
Glass Button Styles
A button style that applies glass border artwork based on the button’s context
Button Styles
A type that applies standard interaction behavior and a custom appearance to all buttons within a view hierarchy
Toolbars
ToolbarItem Shared Background Visibility
Controls the visibility of the glass background effect on items in the toolbar. In certain contexts, such as the navigation bar on iOS and the window toolbar on macOS, toolbar items will be given a glass background effect that is shared with other items in the same logical grouping
Slider
SliderTickContentForEach
A type of slider content that creates content by iterating over a collection.
Custom Slider Ticks
Creates a slider to select a value from a given range, subject to a step increment, which displays the provided labels and customizable ticks.
Stepped Min Max Label Slider
Creates a slider to select a value from a given range, subject to a step increment, which displays the provided labels
Stepped Slider
Creates a slider to select a value from a given range, subject to a step increment
DatePicker
Future DatePicker
Creates an instance that selects multiple dates on or after some start date
StepperFieldDatePickerStyle
A system style that displays the components in an editable field, with adjoining stepper that can increment/decrement the selected component
WheelDatePickerStyle
A date picker style that displays each component as columns in a scrollable wheel
Gauge
CircularGaugeStyle
A gauge style that displays an open ring with a marker that appears at a point along the ring to indicate the gauge’s current value
LinearGaugeStyle
A gauge style that displays a bar with a marker that appears at a point along the bar to indicate the gauge’s current value
AccessoryLinearCapacityGaugeStyle
A gauge style that displays bar that fills from leading to trailing edges as the gauge’s current value increases
AccessoryLinearGaugeStyle
A gauge style that displays bar with a marker that appears at a point along the bar to indicate the gauge’s current value
LinearCapacityGaugeStyle
A gauge style that displays a bar that fills from leading to trailing edges as the gauge’s current value increases
AccessoryCircularCapacityGaugeStyle
A gauge style that displays a closed ring that’s partially filled in to indicate the gauge’s current value
AccessoryCircularGaugeStyle
A gauge style that displays an open ring with a marker that appears at a point along the ring to indicate the gauge’s current value
Min Max Current Value Gauge
Creates a gauge showing a value within a range and describes the gauge’s current, minimum, and maximum values
Current Value Gauge
Creates a gauge showing a value within a range and that describes the gauge’s purpose and current value
ProgressView
CircularProgressViewStyle
The style of a progress view that uses a circular gauge to indicate the partial completion of an activity
LinearProgressViewStyle
A progress view that visually indicates its progress using a horizontal bar
ViewThatFits
Divider
List
Outline Group
A structure that computes views and disclosure groups on demand from an underlying collection of tree-structured, identified data.
Disclosure Group
A view that shows or hides another content view, based on the state of a disclosure control.
Section Index Label and Visibility
Sets the label that is used in a section index to point to this section, typically only a single character long. Changes the visibility of the list section index.
List Background Prominence
The prominence of the background underneath views associated with this environment.
Hidden List Row Separator
Sets the display mode to hidden for the separator associated with this specific row.
Hidden List Section Separator
Sets whether to hide the separator associated with a list section.
Custom List Section Spacing
Sets the spacing between adjacent sections in a List to a custom value.
InsetGroupedListStyle
The list style that describes the behavior and appearance of an inset grouped list.
InsetGroupedListStyle
The list style that describes the behavior and appearance of an inset grouped list.
EllipticalListStyle
The list style that describes the behavior and appearance of an elliptical list.
GroupBox
Color
UIKit Separator Colors
The UIKit separator colors that are also used in other components, such as the TextField
UIKit Content Background colors
The UIKit colors that are also used in other components like in List and GroupBox
UIKit Text Colors
The UIKit text colors that are also used in other components, such as the TextField
Color Variants
HierarchicalShapeStyle, a shape style that maps to one of the numbered content styles
Text
Link
Custom Preview Item ShareLink
Creates an instance, with a custom label, that presents the share interface
ControlGroup
MenuControlGroupStyle
A control group style that presents its content as a menu when the user presses the control, or as a submenu when nested within a larger menu
CompactMenuControlGroupStyle
A control group style that presents its content as a compact menu when the user presses the control, or as a submenu when nested within a larger menu
View
Navigation Split View Container Background
A background placement behind the content of a NavigationSplitView.
Navigation Container Background
Sets the container background of the enclosing container using a view.
Background Extension Effect
Adds the background extension effect to the view. The view will be duplicated into mirrored copies which will be placed around the view on any edge with available safe area. Additionally, a blur effect will be applied on top to blur out the copies
TabView
TabView Bottom Accessory Placement
A placement of the bottom accessory in a tab view. You can use this to adjust the content of the accessory view based on the placement
GlassEffectContainer
Shapes
Sheet
Disable Sheet Dismiss Swipe
Conditionally prevents interactive dismissal of presentations like popovers, sheets, and inspectors. Dragging the sheet is still possible to a limited extent, as shown in the screenshot, but it will never be dismissed.
Page Screen Sheet Size
On devices smaller than a page of paper, such as iPhone, Apple Watch, and 8" or 11" iPads, the sheet fills the entire height and, unlike the default sheet on iPad, the full width. On macOS, .page behaves like .fitted.
Fitted Sheet Sizing
Sets the sizing of the containing presentation. This does not have any effect on smaller devices like iPhone and Apple Watch. On macOS, fitted is the default.
Prioritize Sheet Content Scrolling
Configures the behavior of swipe gestures on a presentation. PresentationContentInteraction.scrolls prioritizes scrolling the content over resizing the sheet.
Sheet Background Interaction
Controls whether people can interact with the view behind a presentation.
Sheet Background
Sets the presentation background of the enclosing sheet using a shape style.
Item Sheet
Presents a sheet using the given item as a data source for the sheet’s content. On watchOS, sheets are displayed as fullScreenCover.
Label
Image Label
Creates a label with an icon image and a title generated from a localized string.