MacKuba

🍎 Kuba Suder's blog on Mac & iOS development

SwiftUI Index

Filter: | Search:

Note: Catalyst version tag is only shown if the availability differs from iOS.

Type e.g. “16” or “macos 13” in the search field to match a specific OS version.

Views

  • AddPassToWalletButton PassKit iOS 16.0 xrOS 1.0

  • AngularGradient iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    An angular gradient.

  • AnyShape iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    A type-erased shape value.

  • AnyView iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A type-erased view.

  • AsyncImage iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    A view that asynchronously loads and displays an image.

  • AsyncShareablePassConfiguration PassKit iOS 16.0 xrOS 1.0

  • Button iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A control that initiates an action.

  • ButtonBorderShape iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    A shape that is used to draw a button’s border.

  • CameraView HomeKit iOS 14.0 Catalyst 16.2 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A SwiftUI view into which a video stream or an image snapshot is rendered.

  • Canvas iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    A view type that supports immediate mode drawing.

  • Capsule iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A capsule shape aligned inside the frame of the view containing it.

  • Circle iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A circle centered on the frame of the view containing it.

  • Color iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A representation of a color that adapts to a given context.

  • ColorPicker iOS 14.0 macOS 11.0 xrOS 1.0

    A control used to select a color from the system color picker UI.

  • ContainerRelativeShape iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A shape that is replaced by an inset version of the current container shape. If no container shape was defined, is replaced by a rectangle.

  • ContentUnavailableView iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    An interface, consisting of a label and additional content, that you display when the content of your app is unavailable to users.

  • ControlGroup iOS 15.0 macOS 12.0 tvOS 17.0 xrOS 1.0

    A container view that displays semantically-related controls in a visually-appropriate manner for the context

  • DatePicker iOS 13.0 macOS 10.15 watchOS 10.0 xrOS 1.0

    A control for selecting an absolute date.

  • DefaultDateProgressLabel iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    The default type of the current value label when used by a date-relative progress view.

  • DefaultSubscriptionStoreMarketingContent StoreKit xrOS 1.0

    A view that represents the default marketing content for an in-app subscription store.

  • DevicePicker DeviceDiscoveryUI tvOS 16.0

    A SwiftUI view that displays other devices on the network, and creates an encrypted connection to a copy of your app running on that device.

  • DisclosureGroup iOS 14.0 macOS 11.0 xrOS 1.0

    A view that shows or hides another content view, based on the state of a disclosure control.

  • Divider iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A visual element that can be used to separate other content.

  • EditButton iOS 13.0 xrOS 1.0

    A button that toggles the edit mode environment value.

  • Ellipse iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    An ellipse aligned inside the frame of the view containing it.

  • EllipticalGradient iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    A radial gradient that draws an ellipse.

  • EmptyView iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A view that doesn’t contain any content.

  • EquatableView iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A view type that compares itself against its previous value and prevents its child updating if its new value is the same as its old value.

  • FillShapeView iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    A shape provider that fills its shape.

  • ForEach iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A structure that computes views on demand from an underlying collection of identified data.

  • Form iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A container for grouping controls used for data entry, such as in settings or inspectors.

  • Gauge iOS 16.0 macOS 13.0 watchOS 7.0 xrOS 1.0

    A view that shows a value within a range.

  • GeometryReader iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A container view that defines its content as a function of its own size and coordinate space.

  • GeometryReader3D xrOS 1.0

    A container view that defines its content as a function of its own size and coordinate space.

  • Grid iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    A container view that arranges other views in a two dimensional layout.

  • GridRow iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    A horizontal row in a two dimensional grid container.

  • Group iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A type that collects multiple instances of a content type — like views, scenes, or commands — into a single unit.

  • GroupBox iOS 14.0 macOS 10.15 xrOS 1.0

    A stylized view, with an optional label, that visually collects a logical grouping of content.

  • HelpLink macOS 14.0 xrOS 1.0

    A button with a standard appearance that opens app-specific help documentation.

  • HSplitView macOS 10.15

    A layout container that arranges its children in a horizontal line and allows the user to resize them using dividers placed between them.

  • HStack iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A view that arranges its subviews in a horizontal line.

  • Image iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A view that displays an image.

  • KeyframeAnimator iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    A container that animates its content with keyframes.

  • Label iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A standard label for user interface items, consisting of an icon with a title.

  • LabeledContent iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    A container for attaching a label to a value-bearing view.

  • LazyHGrid iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A container view that arranges its child views in a grid that grows horizontally, creating items only as needed.

  • LazyHStack iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A view that arranges its children in a line that grows horizontally, creating items only as needed.

  • LazyVGrid iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A container view that arranges its child views in a grid that grows vertically, creating items only as needed.

  • LazyVStack iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A view that arranges its children in a line that grows vertically, creating items only as needed.

  • LinearGradient iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A linear gradient.

  • Link iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A control for navigating to a URL.

  • List iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A container that presents rows of data arranged in a single column, optionally providing the ability to select one or more members.

  • LocalAuthenticationView Local Authentication macOS 13.0

    A SwiftUI view that displays an authentication interface.

  • LocationButton CoreLocationUI iOS 15.0 watchOS 8.0

    A SwiftUI button that grants one-time location authorization.

  • Map MapKit iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A view that displays an embedded map interface.

  • MapCompass MapKit iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    A view that reflects the current orientation of the associated map.

  • MapContentView MapKit iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    A view that contains content that displays on a map at a specific position, and that responds to specific interactions you specify.

  • MapPitchButton MapKit iOS 17.0 macOS 14.0 tvOS 17.0 xrOS 1.0

    A button that sets the pitch (viewing angle) of an associated map to a viewable angle if flat, or returns the map to flat if pitched.

  • MapPitchSlider MapKit macOS 14.0 Catalyst 17.0

    A slider control that allows a person to change the pitch of the map.

  • MapScaleView MapKit iOS 17.0 macOS 14.0 tvOS 17.0 xrOS 1.0

    Displays a legend with distance information for the associated map.

  • MapUserLocationButton MapKit iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    A button that sets the framing of the associated map to the user location.

  • MapZoomStepper MapKit macOS 14.0 Catalyst 17.0

    Buttons a person uses to adjust the zoom level of the map.

  • Menu iOS 14.0 macOS 11.0 tvOS 17.0 xrOS 1.0

    A control for presenting a menu of actions.

  • MenuButton Deprecated macOS 10.15

    A button that displays a menu containing a list of choices when pressed.

    → Use Menu instead.

  • ModifiedContent iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A value with a modifier applied to it.

  • MultiDatePicker iOS 16.0 xrOS 1.0

    A control for picking multiple dates.

  • NavigationLink iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A view that controls a navigation presentation.

  • NavigationSplitView iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    A view that presents views in two or three columns, where selections in leading columns control presentations in subsequent columns.

  • NavigationStack iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    A view that displays a root view and enables you to present additional views over the root view.

  • NavigationView Deprecated iOS 13.0 macOS 10.15 watchOS 7.0 tvOS 13.0 xrOS 1.0

    A view for presenting a stack of views that represents a visible path in a navigation hierarchy.

    → Use NavigationStack and NavigationSplitView instead.

  • NowPlayingView WatchKit watchOS 7.0

    A view that displays the system’s Now Playing interface so that the user can control audio.

  • OffsetShape iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A shape with a translation offset transform applied to it.

  • OutlineGroup iOS 14.0 macOS 11.0 xrOS 1.0

    A structure that computes views and disclosure groups on demand from an underlying collection of tree-structured, identified data.

  • PasteButton iOS 16.0 macOS 10.15 xrOS 1.0

    A system button that reads items from the pasteboard and delivers it to a closure.

  • Path iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    The outline of a 2D shape.

  • PayLaterView PassKit iOS 17.0 xrOS 1.0

    A view that displays the Apple Pay Later visual merchandising widget.

  • PayWithApplePayButton PassKit iOS 16.0 macOS 13.0 watchOS 9.0 xrOS 1.0

  • PhaseAnimator iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    A container that animates its content by automatically cycling through a collection of phases that you provide, each defining a discrete step within an animation.

  • PhotosPicker PhotosUI iOS 16.0 macOS 13.0 watchOS 9.0 xrOS 1.0

    A view that displays a Photos picker for choosing assets from the photo library.

  • Picker iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A control for selecting from a set of mutually exclusive values.

  • ProductView StoreKit iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    A view that merchandises an individual in-app purchase product.

  • ProgressView iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A view that shows the progress toward completion of a task.

  • RadialGradient iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A radial gradient.

  • Rectangle iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A rectangular shape aligned inside the frame of the view containing it.

  • RenameButton iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    A button that triggers a standard rename action.

  • RotatedShape iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A shape with a rotation transform applied to it.

  • RoundedRectangle iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A rectangular shape with rounded corners, aligned inside the frame of the view containing it.

  • ScaledShape iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A shape with a scale transform applied to it.

  • SceneView SceneKit iOS 14.0 macOS 11.0 Catalyst 14.2 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A SwiftUI view for displaying 3D SceneKit content.

  • ScrollView iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A scrollable view.

  • ScrollViewReader iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A view that provides programmatic scrolling, by working with a proxy to scroll to known child views.

  • Section iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A container view that you can use to add hierarchy to certain collection views.

  • SecureField iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A control into which the user securely enters private text.

  • SettingsLink macOS 14.0

    A view that opens the Settings scene defined by an app.

  • ShareLink iOS 16.0 macOS 13.0 watchOS 9.0 xrOS 1.0

    A view that controls a sharing presentation.

  • SignInWithAppleButton Authentication Services iOS 14.0 macOS 11.0 Catalyst 14.2 watchOS 7.0 tvOS 14.0 xrOS 1.0

    The view that creates the Sign in with Apple button for display.

  • Slider iOS 13.0 macOS 10.15 watchOS 6.0 xrOS 1.0

    A control for selecting a value from a bounded linear range of values.

  • Spacer iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A flexible space that expands along the major axis of its containing stack layout, or on both axes if not contained in a stack.

  • SpriteView SpriteKit iOS 14.0 macOS 11.0 Catalyst 14.2 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A SwiftUI view that renders a SpriteKit scene.

  • Stepper iOS 13.0 macOS 10.15 watchOS 9.0 xrOS 1.0

    A control that performs increment and decrement actions.

  • StoreView StoreKit iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    A view that merchandises a collection of in-app purchase products.

  • SubscriptionStoreView StoreKit iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    A view that merchandises a collection of auto-renewable subscription options in a subscription group.

  • SubscriptionView iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A view that subscribes to a publisher with an action.

  • Table iOS 16.0 macOS 12.0 xrOS 1.0

    A container that presents rows of data arranged in one or more columns, optionally providing the ability to select one or more members.

  • TabView iOS 13.0 macOS 10.15 watchOS 7.0 tvOS 13.0 xrOS 1.0

    A view that switches between multiple child views using interactive user interface elements.

  • Text iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A view that displays one or more lines of read-only text.

  • TextEditor iOS 14.0 macOS 11.0 xrOS 1.0

    A view that can display and edit long-form text.

  • TextField iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A control that displays an editable text interface.

  • TextFieldLink watchOS 9.0

    A control that requests text input from the user when pressed.

  • TimelineView iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    A view that updates according to a schedule that you provide.

  • Toggle iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A control that toggles between on and off states.

  • TransformedShape iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A shape with an affine transform applied to it.

  • TupleView iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A View created from a swift tuple of View values.

  • UnevenRoundedRectangle iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    A rectangular shape with rounded corners with different values, aligned inside the frame of the view containing it.

  • VerifyIdentityWithWalletButton PassKit iOS 16.0 xrOS 1.0

    A view that displays a button for identity verification.

  • VideoPlayer AVKit iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A view that displays content from a player and a native user interface to control playback.

  • ViewThatFits iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    A view that adapts to the available space by providing the first child view that fits.

  • VSplitView macOS 10.15

    A layout container that arranges its children in a vertical line and allows the user to resize them using dividers placed between them.

  • VStack iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A view that arranges its subviews in a vertical line.

  • ZStack iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A view that overlays its subviews, aligning them in both axes.

Scenes

  • DocumentGroup iOS 14.0 macOS 11.0 xrOS 1.0

    A scene that enables support for opening, creating, and saving documents.

  • Group iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A type that collects multiple instances of a content type — like views, scenes, or commands — into a single unit.

  • ImmersiveSpace xrOS 1.0

    A scene that presents its content in an unbounded space.

  • MenuBarExtra macOS 13.0

    A scene that renders itself as a persistent control in the system menu bar.

  • ModifiedContent iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A value with a modifier applied to it.

  • Settings macOS 11.0

    A scene that presents an interface for viewing and modifying an app’s settings.

  • Window macOS 13.0

    A scene that presents its content in a single, unique window.

  • WindowGroup iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A scene that presents a group of identically structured windows.

  • WKNotificationScene watchOS 7.0

    A scene which appears in response to receiving the specified category of remote or local notifications.

Commands

  • CommandGroup iOS 14.0 macOS 11.0 xrOS 1.0

    Groups of controls that you can add to existing command menus.

  • CommandMenu iOS 14.0 macOS 11.0 xrOS 1.0

    Command menus are stand-alone, top-level containers for controls that perform related, app-specific commands.

  • EmptyCommands iOS 14.0 macOS 11.0 xrOS 1.0

    An empty group of commands.

  • Group iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A type that collects multiple instances of a content type — like views, scenes, or commands — into a single unit.

  • ImportFromDevicesCommands macOS 12.0

    A built-in set of commands that enables importing content from nearby devices.

  • SidebarCommands iOS 14.0 macOS 11.0 xrOS 1.0

    A built-in set of commands for manipulating window sidebars.

  • TextEditingCommands iOS 14.0 macOS 11.0 xrOS 1.0

    A built-in group of commands for searching, editing, and transforming selections of text.

  • TextFormattingCommands iOS 14.0 macOS 11.0 xrOS 1.0

    A built-in set of commands for transforming the styles applied to selections of text.

  • ToolbarCommands iOS 14.0 macOS 11.0 xrOS 1.0

    A built-in set of commands for manipulating window toolbars.

Classes

  • ImageRenderer iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    An object that creates images from SwiftUI views.

  • NSHostingController macOS 10.15

    An AppKit view controller that hosts SwiftUI view hierarchy.

  • NSHostingView macOS 10.15

    An AppKit view that hosts a SwiftUI view hierarchy.

  • UIHostingController iOS 13.0 tvOS 13.0 xrOS 1.0

    A UIKit view controller that manages a SwiftUI view hierarchy.

  • UIHostingOrnament xrOS 1.0

    A model that represents an ornament suitable for being hosted in UIKit.

  • UIOrnament xrOS 1.0

    The abstract base class that represents an ornament. You don’t create an instance of this class directly. Instead use UIHostingOrnament.

  • ViewAttachmentEntity RealityKit xrOS 1.0

    An entity that has a view attachment.

  • WKHostingController watchOS 6.0

    A WatchKit interface controller that hosts a SwiftUI view hierarchy.

  • WKUserNotificationHostingController watchOS 6.0

    A WatchKit user notification interface controller that hosts a SwiftUI view hierarchy.

View Modifiers

  • .accentColor() Deprecated iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the accent color for this view and the views it contains.

    → Use the asset catalog’s accent color or tint(_:) instead.

  • .accessibility() Deprecated iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Communicates to the user what happens after performing the view’s action.

    → Use accessibilityHint(_:) instead.

  • .accessibilityAction() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Adds an accessibility action to the view. Actions allow assistive technologies, such as the VoiceOver, to interact with the view by invoking the action.

  • .accessibilityActions() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Adds multiple accessibility actions to the view.

  • .accessibilityActivationPoint() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    The activation point for an element is the location assistive technologies use to initiate gestures.

  • .accessibilityAddTraits() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Adds the given traits to the view.

  • .accessibilityAdjustableAction() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Adds an accessibility adjustable action to the view. Actions allow assistive technologies, such as the VoiceOver, to interact with the view by invoking the action.

  • .accessibilityChartDescriptor() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Adds a descriptor to a View that represents a chart to make the chart’s contents accessible to all users.

  • .accessibilityChildren() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Replaces the existing accessibility element’s children with one or more new synthetic accessibility elements.

  • .accessibilityCustomContent() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Add additional accessibility information to the view.

  • .accessibilityDirectTouch() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Explicitly set whether this accessibility element is a direct touch area. Direct touch areas passthrough touch events to the app rather than being handled through an assistive technology, such as VoiceOver. The modifier accepts an optional AccessibilityDirectTouchOptions option set to customize the functionality of the direct touch area.

  • .accessibilityElement() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Creates a new accessibility element, or modifies the AccessibilityChildBehavior of the existing accessibility element.

  • .accessibilityFocused() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Modifies this view by binding its accessibility element’s focus state to the given boolean state value.

  • .accessibilityHeading() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Sets the accessibility level of this heading.

  • .accessibilityHidden() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Specifies whether to hide this view from system accessibility features.

  • .accessibilityHint() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Communicates to the user what happens after performing the view’s action.

  • .accessibilityIdentifier() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Uses the string you specify to identify the view.

  • .accessibilityIgnoresInvertColors() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Sets whether this view should ignore the system Smart Invert setting.

  • .accessibilityInputLabels() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Sets alternate input labels with which users identify a view.

  • .accessibilityLabel() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Adds a label to the view that describes its contents.

  • .accessibilityLabeledPair() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Pairs an accessibility element representing a label with the element for the matching content.

  • .accessibilityLinkedGroup() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Links multiple accessibility elements so that the user can quickly navigate from one element to another, even when the elements are not near each other in the accessibility hierarchy.

  • .accessibilityQuickAction() watchOS 9.0

    Adds a quick action to be shown by the system when active.

  • .accessibilityRemoveTraits() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Removes the given traits from this view.

  • .accessibilityRepresentation() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Replaces one or more accessibility elements for this view with new accessibility elements.

  • .accessibilityRespondsToUserInteraction() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Explicitly set whether this Accessibility element responds to user interaction and would thus be interacted with by technologies such as Switch Control, Voice Control or Full Keyboard Access.

  • .accessibilityRotor() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Create an Accessibility Rotor replacing the specified system-provided Rotor.

  • .accessibilityRotorEntry() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Defines an explicit identifier tying an Accessibility element for this view to an entry in an Accessibility Rotor.

  • .accessibilityScrollAction() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Adds an accessibility scroll action to the view. Actions allow assistive technologies, such as the VoiceOver, to interact with the view by invoking the action.

  • .accessibilityShowsLargeContentViewer() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Adds a default large content view to be shown by the large content viewer.

  • .accessibilitySortPriority() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Sets the sort priority order for this view’s accessibility element, relative to other elements at the same level.

  • .accessibilityTextContentType() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Sets an accessibility text content type.

  • .accessibilityValue() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Adds a textual description of the value that the view contains.

  • .accessibilityZoomAction() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Adds an accessibility zoom action to the view. Actions allow assistive technologies, such as VoiceOver, to interact with the view by invoking the action.

  • .actionSheet() iOS 13.0 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Presents an action sheet using the given item as a data source for the sheet’s content.

  • .activityBackgroundTint() WidgetKit iOS 16.0 xrOS 1.0

    Sets the tint color for the background of a Live Activity that appears on the Lock Screen.

  • .activitySystemActionForegroundColor() WidgetKit iOS 16.1 xrOS 1.0

    The text color for the auxiliary action button that the system shows next to a Live Activity on the Lock Screen.

  • .alert() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Presents an alert when a given condition is true, using a text view for the title.

  • .alignmentGuide() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the view’s vertical alignment.

  • .allowedDynamicRange() iOS 17.0 macOS 14.0 tvOS 17.0 xrOS 1.0

    Returns a new view configured with the specified allowed dynamic range.

  • .allowsHitTesting() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Configures whether this view participates in hit test operations.

  • .allowsTightening() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets whether text in this view can compress the space between characters when necessary to fit text in a line.

  • .alternatingRowBackgrounds() macOS 14.0

    Overrides whether lists and tables in this view have alternating row backgrounds.

  • .anchorPreference() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets a value for the specified preference key, the value is a function of a geometry value tied to the current coordinate space, allowing readers of the value to convert the geometry to their local coordinates.

  • .animation() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Applies the given animation to this view when this view changes.

  • .appStoreOverlay() StoreKit iOS 14.0 xrOS 1.0

    Presents a StoreKit overlay when a given condition is true.

  • .aspectRatio() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Constrains this view’s dimensions to the specified aspect ratio.

  • .autocapitalization() Deprecated iOS 13.0 tvOS 13.0 xrOS 1.0

    Sets whether to apply auto-capitalization to this view.

    → Use textInputAutocapitalization(_:) instead.

  • .autocorrectionDisabled() iOS 13.0 macOS 10.15 watchOS 8.0 tvOS 13.0 xrOS 1.0

    Sets whether to disable autocorrection for this view.

  • .background() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the view’s background to the default background style.

  • .backgroundPreferenceValue() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Reads the specified preference value from the view, using it to produce a second view that is applied as the background of the original view.

  • .backgroundStyle() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Sets the specified style to render backgrounds within the view.

  • .badge() iOS 15.0 macOS 12.0 xrOS 1.0

    Generates a badge for the view from a string.

  • .badgeProminence() iOS 17.0 macOS 14.0 xrOS 1.0

    Specifies the prominence of badges created by this view.

  • .baselineOffset() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Sets the vertical offset for the text relative to its baseline in this view.

  • .blendMode() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the blend mode for compositing this view with overlapping views.

  • .blur() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Applies a Gaussian blur to this view.

  • .bold() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Applies a bold font weight to the text in this view.

  • .border() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Adds a border to this view with the specified style and width.

  • .brightness() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Brightens this view by the specified amount.

  • .buttonBorderShape() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Sets the border shape for buttons in this view.

  • .buttonRepeatBehavior() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Sets whether buttons in this view should repeatedly trigger their actions on prolonged interactions.

  • .buttonStyle() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the style for buttons within this view to a button style with a custom appearance and custom interaction behavior.

  • .chartAngleSelection() Charts iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

  • .chartBackground() Charts iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Adds a background to a view that contains a chart.

  • .chartForegroundStyleScale() Charts iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Configures the foreground style scale for charts.

  • .chartGesture() Charts iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

  • .chartLegend() Charts iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Configures the legend for charts.

  • .chartLineStyleScale() Charts iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Configures the line style scale for charts.

  • .chartOverlay() Charts iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Adds an overlay to a view that contains a chart.

  • .chartPlotStyle() Charts iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Configures the plot area of charts.

  • .chartScrollableAxes() Charts iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Configures the scrollable behavior of charts in this view.

  • .chartScrollPosition() Charts iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Associates a binding to be updated when the chart scrolls along the x-axis.

  • .chartScrollTargetBehavior() Charts iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Sets the scroll behavior of the scrollable chart.

  • .chartSymbolScale() Charts iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Configures the symbol scale for charts.

  • .chartSymbolSizeScale() Charts iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Configures the symbol size scale for charts.

  • .chartXAxis() Charts iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Sets the visibility of the x axis.

  • .chartXAxisLabel() Charts iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Adds x axis label for charts in the view.

  • .chartXAxisStyle() Charts iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Configures the x axis content of charts.

  • .chartXScale() Charts iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Configures the x scale for charts.

  • .chartXSelection() Charts iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

  • .chartXVisibleDomain() Charts iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Sets the length of the visible domain in the X dimension.

  • .chartYAxis() Charts iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Sets the visibility of the y axis.

  • .chartYAxisLabel() Charts iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Adds y axis label for charts in the view.

  • .chartYAxisStyle() Charts iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Configures the y axis content of charts.

  • .chartYScale() Charts iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Configures the y scale for charts.

  • .chartYSelection() Charts iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

  • .chartYVisibleDomain() Charts iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Sets the length of the visible domain in the Y dimension.

  • .clipped() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Clips this view to its bounding rectangular frame.

  • .clipShape() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets a clipping shape for this view.

  • .colorEffect() iOS 17.0 macOS 14.0 tvOS 17.0 xrOS 1.0

    Returns a new view that applies shader to self as a filter effect on the color of each pixel.

  • .colorInvert() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Inverts the colors in this view.

  • .colorMultiply() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Adds a color multiplication effect to this view.

  • .colorScheme() Deprecated iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets this view’s color scheme.

    → Use preferredColorScheme(_:) instead.

  • .compositingGroup() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Wraps this view in a compositing group.

  • .confirmationDialog() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Presents a confirmation dialog when a given condition is true, using a text view for the title.

  • .containerBackground() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Sets the container background of the enclosing container using a view.

  • .containerRelativeFrame() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Positions this view within an invisible frame with a size relative to the nearest container.

  • .containerShape() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Sets the container shape to use for any container relative shape within this view.

  • .contentMargins() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Configures the content margin for a provided placement.

  • .contentShape() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Defines the content shape for hit testing.

  • .contentTransition() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Modifies the view to use a given transition as its method of animating changes to the contents of its views.

  • .contextMenu() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 14.0 xrOS 1.0

    Adds a context menu to a view.

  • .contrast() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the contrast and separation between similar colors in this view.

  • .controlGroupStyle() iOS 15.0 macOS 12.0 tvOS 17.0 xrOS 1.0

    Sets the style for control groups within this view.

  • .controlSize() iOS 15.0 macOS 10.15 watchOS 9.0 xrOS 1.0

    Sets the size for controls within this view.

  • .coordinateSpace() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Assigns a name to the view’s coordinate space, so other code can operate on dimensions like points and sizes relative to the named space.

  • .copyable() macOS 13.0

    Specifies a list of items to copy in response to the system’s Copy command.

  • .cornerRadius() Deprecated iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Clips this view to its bounding frame, with the specified corner radius.

    → Use clipShape(_:style:) or fill(style:) instead.

  • .currentEntitlementTask() StoreKit iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Declares the view as dependent on the entitlement of an in-app purchase product for productID and returns a modified view.

  • .cuttable() macOS 13.0

    Specifies an action that moves items to the Clipboard in response to the system’s Cut command.

  • .datePickerStyle() iOS 13.0 macOS 10.15 watchOS 10.0 xrOS 1.0

    Sets the style for date pickers within this view.

  • .defaultAppStorage() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    The default store used by AppStorage contained within the view.

  • .defaultFocus() iOS 17.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Defines a region of the window in which default focus is evaluated by assigning a value to a given focus state binding.

  • .defaultHoverEffect() iOS 17.0 tvOS 17.0 xrOS 1.0

    Sets the default hover effect to use for views within this view.

  • .defaultWheelPickerItemHeight() watchOS 6.0 xrOS 1.0

    Sets the default wheel-style picker item height.

  • .defersSystemGestures() iOS 16.0

    Sets the screen edge from which you want your gesture to take precedence over the system gesture.

  • .deleteDisabled() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Adds a condition for whether the view’s view hierarchy is deletable.

  • .dialogIcon() macOS 13.0 watchOS 10.0 xrOS 1.0

    Configures the icon used by dialogs within this view.

  • .dialogSeverity() macOS 13.0 watchOS 10.0 xrOS 1.0

  • .dialogSuppression() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Enables user suppression of dialogs and alerts presented within self, with a custom suppression message on macOS. Unused on other platforms.

  • .dialogSuppressionToggle() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Enables user suppression of dialogs and alerts presented within self, with a default suppression message on macOS. Unused on other platforms.

  • .digitalCrownAccessory() watchOS 9.0

    Specifies the visibility of Digital Crown accessory Views on Apple Watch.

  • .digitalCrownRotation() watchOS 6.0

    Tracks Digital Crown rotations by updating the specified binding.

  • .disableAutocorrection() Deprecated iOS 13.0 macOS 10.15 watchOS 8.0 tvOS 13.0 xrOS 1.0

    Sets whether to disable autocorrection for this view.

    → Use autocorrectionDisabled(_:) instead.

  • .disabled() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Adds a condition that controls whether users can interact with this view.

  • .disclosureGroupStyle() iOS 16.0 macOS 13.0 xrOS 1.0

    Sets the style for disclosure groups within this view.

  • .distortionEffect() iOS 17.0 macOS 14.0 tvOS 17.0 xrOS 1.0

    Returns a new view that applies shader to self as a geometric distortion effect on the location of each pixel.

  • .draggable() iOS 16.0 macOS 13.0 xrOS 1.0

    Activates this view as the source of a drag and drop operation.

  • .drawingGroup() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Composites this view’s contents into an offscreen image before final display.

  • .dropDestination() iOS 16.0 macOS 13.0 xrOS 1.0

    Defines the destination of a drag and drop operation that handles the dropped content with a closure that you specify.

  • .dynamicIsland() WidgetKit iOS 16.1 xrOS 1.0

    Specifies the vertical placement for a view of an expanded Live Activity that appears in the Dynamic Island.

  • .dynamicTypeSize() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Sets the Dynamic Type size within the view to the given value.

  • .edgesIgnoringSafeArea() Deprecated iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Changes the view’s proposed area to extend outside the screen’s safe areas.

    → Use ignoresSafeArea(_:edges:) instead.

  • .environment() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the environment value of the specified key path to the given value.

  • .environmentObject() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Supplies an ObservableObject to a view subhierarchy.

  • .exportableToServices() macOS 13.0

    Exports items for consumption by shortcuts, quick actions, and services.

  • .exportsItemProviders() macOS 12.0

    Exports a read-only item provider for consumption by shortcuts, quick actions, and services.

  • .familyActivityPicker() FamilyControls iOS 15.0 xrOS 1.0

    Presents an activity picker view as a sheet.

  • .fileDialogBrowserOptions() iOS 17.0 macOS 14.0 xrOS 1.0

    On macOS, configures the fileExporter, fileImporter, or fileMover to provide a refined URL search experience: include or exclude hidden files, allow searching by tag, etc.

  • .fileDialogConfirmationLabel() iOS 17.0 macOS 14.0 xrOS 1.0

    On macOS, configures the the fileExporter, fileImporter, or fileMover with a custom confirmation button label.

  • .fileDialogCustomizationID() iOS 17.0 macOS 14.0 xrOS 1.0

    On macOS, configures the fileExporter, fileImporter, or fileMover to persist and restore the file dialog configuration.

  • .fileDialogDefaultDirectory() iOS 17.0 macOS 14.0 xrOS 1.0

    Configures the fileExporter, fileImporter, or fileMover to open with the specified default directory.

  • .fileDialogImportsUnresolvedAliases() iOS 17.0 macOS 14.0 xrOS 1.0

    On macOS, configures the fileExporter, fileImporter, or fileMover behavior when a user chooses an alias.

  • .fileDialogMessage() iOS 17.0 macOS 14.0 xrOS 1.0

    On macOS, configures the the fileExporter, fileImporter, or fileMover with a custom text that is presented to the user, similar to a title.

  • .fileDialogURLEnabled() iOS 17.0 macOS 14.0 xrOS 1.0

    On macOS, configures the the fileImporter or fileMover to conditionally disable presented URLs.

  • .fileExporter() iOS 14.0 macOS 11.0 xrOS 1.0

    Presents a system interface for exporting a collection of value type documents to files on disk.

  • .fileExporterFilenameLabel() iOS 17.0 macOS 14.0 xrOS 1.0

    On macOS, configures the fileExporter with a label for the file name field.

  • .fileImporter() iOS 14.0 macOS 11.0 xrOS 1.0

    Presents a system interface for allowing the user to import an existing file.

  • .fileMover() iOS 14.0 macOS 11.0 xrOS 1.0

    Presents a system interface for allowing the user to move an existing file to a new location.

  • .findDisabled() iOS 16.0 xrOS 1.0

    Prevents find and replace operations in a text editor.

  • .findNavigator() iOS 16.0 xrOS 1.0

    Programmatically presents the find and replace interface for text editor views.

  • .fixedSize() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Fixes this view at its ideal size.

  • .flipsForRightToLeftLayoutDirection() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets whether this view mirrors its contents horizontally when the layout direction is right-to-left.

  • .focusable() iOS 17.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Specifies if the view is focusable.

  • .focused() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Modifies this view by binding its focus state to the given Boolean state value.

  • .focusedObject() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Creates a new view that exposes the provided object to other views whose state depends on the focused view hierarchy.

  • .focusedSceneObject() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Creates a new view that exposes the provided object to other views whose whose state depends on the active scene.

  • .focusedSceneValue() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Creates a new view that exposes the provided value to other views whose state depends on the active scene.

  • .focusedValue() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Creates a new view that exposes the provided value to other views whose state depends on the focused view hierarchy.

  • .focusEffectDisabled() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Adds a condition that controls whether this view can display focus effects, such as a default focus ring or hover effect.

  • .focusScope() macOS 12.0 watchOS 7.0 tvOS 14.0

    Creates a focus scope that SwiftUI uses to limit default focus preferences.

  • .focusSection() macOS 13.0 tvOS 15.0

    Indicates that the view’s frame and cohort of focusable descendants should be used to guide focus movement.

  • .font() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the default font for text in this view.

  • .fontDesign() iOS 16.1 macOS 13.0 watchOS 9.1 tvOS 16.1 xrOS 1.0

    Sets the font design of the text in this view.

  • .fontWeight() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Sets the font weight of the text in this view.

  • .fontWidth() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Sets the font width of the text in this view.

  • .foregroundColor() Deprecated iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the color of the foreground elements displayed by this view.

    → Use foregroundStyle(_:) instead.

  • .foregroundStyle() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Sets a view’s foreground elements to use a given style.

  • .frame() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Positions this view within an invisible frame.

  • .fullScreenCover() iOS 14.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Presents a modal view that covers as much of the screen as possible using the binding you provide as a data source for the sheet’s content.

  • .gaugeStyle() iOS 16.0 macOS 13.0 watchOS 7.0 xrOS 1.0

    Sets the style for gauges within this view.

  • .gesture() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Attaches a gesture to the view with a lower precedence than gestures defined by the view.

  • .glassBackgroundEffect() xrOS 1.0

    Sets the view’s glass background to displayMode, filling the view’s container relative rounded corner shape.

  • .grayscale() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Adds a grayscale effect to this view.

  • .gridCellAnchor() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Specifies a custom alignment anchor for a view that acts as a grid cell.

  • .gridCellColumns() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Tells a view that acts as a cell in a grid to span the specified number of columns.

  • .gridCellUnsizedAxes() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Asks grid layouts not to offer the view extra size in the specified axes.

  • .gridColumnAlignment() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Overrides the default horizontal alignment of the grid column that the view appears in.

  • .groupBoxStyle() iOS 14.0 macOS 11.0 xrOS 1.0

    Sets the style for group boxes within this view.

  • .handlesExternalEvents() iOS 14.0 macOS 11.0 xrOS 1.0

    Specifies a modifier indicating the Scene this View is in can handle matching incoming External Events.

  • .headerProminence() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Sets the header prominence for this view.

  • .healthDataAccessRequest() HealthKit iOS 17.0 xrOS 1.0

    Requests authorization to read and share the given HealthKit types.

  • .help() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Adds help text to a view using a string that you provide.

  • .hidden() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Hides this view unconditionally.

  • .highPriorityGesture() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Attaches a gesture to the view with a higher precedence than gestures defined by the view.

  • .horizontalRadioGroupLayout() macOS 10.15

    Sets the style for radio group style pickers within this view to be horizontally positioned with the radio buttons inside the layout.

  • .hoverEffect() iOS 13.4 tvOS 16.0 xrOS 1.0

    Applies a hover effect to this view.

  • .hoverEffectDisabled() iOS 17.0 tvOS 17.0 xrOS 1.0

    Adds a condition that controls whether this view can display hover effects.

  • .hueRotation() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Applies a hue rotation effect to this view.

  • .id() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Binds a view’s identity to the given proxy value.

  • .ignoresSafeArea() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Expands the view out of its safe area.

  • .imageScale() iOS 13.0 macOS 11.0 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Scales images within the view according to one of the relative sizes available including small, medium, and large images sizes.

  • .importableFromServices() macOS 13.0

    Enables importing items from services, such as Continuity Camera on macOS.

  • .importsItemProviders() macOS 12.0

    Enables importing item providers from services, such as Continuity Camera on macOS.

  • .inAppPurchaseOptions() StoreKit iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Add a function to call before initiating a purchase from an in-app store within view, providing a set of options for the purchase.

  • .indexViewStyle() iOS 14.0 watchOS 8.0 tvOS 14.0 xrOS 1.0

    Sets the style for the index view within the current environment.

  • .inspector() iOS 17.0 macOS 14.0

    Inserts an inspector at the applied position in the view hierarchy.

  • .inspectorColumnWidth() iOS 17.0 macOS 14.0

    Sets a fixed, preferred width for the inspector containing this view when presented as a trailing column.

  • .interactionActivityTrackingTag() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Sets a tag that you use for tracking interactivity.

  • .interactiveDismissDisabled() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Conditionally prevents interactive dismissal of presentations like popovers, sheets, and inspectors.

  • .invalidatableContent() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Mark the receiver as their content might be invalidated.

  • .italic() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Applies italics to the text in this view.

  • .itemProvider() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Provides a closure that vends the drag representation to be used for a particular data element.

  • .kerning() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Sets the spacing, or kerning, between characters for the text in this view.

  • .keyboardShortcut() iOS 14.0 macOS 11.0 xrOS 1.0

    Assigns a keyboard shortcut to the modified control.

  • .keyboardType() iOS 13.0 tvOS 13.0 xrOS 1.0

    Sets the keyboard type for this view.

  • .keyframeAnimator() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Plays the given keyframes when the given trigger value changes, updating the view using the modifiers you apply in body.

  • .labelsHidden() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Hides the labels of any controls contained within this view.

  • .labelStyle() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Sets the style for labels within this view.

  • .layerEffect() iOS 17.0 macOS 14.0 tvOS 17.0 xrOS 1.0

    Returns a new view that applies shader to self as a filter on the raster layer created from self.

  • .layoutDirectionBehavior() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Sets the behavior of this view for different layout directions.

  • .layoutPriority() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the priority by which a parent layout should apportion space to this child.

  • .layoutValue() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Associates a value with a custom layout property.

  • .lineLimit() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the maximum number of lines that text can occupy in this view.

  • .lineSpacing() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the amount of space between lines of text in this view.

  • .listItemTint() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Sets the tint effect associated with specific content in a list.

  • .listRowBackground() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Places a custom background view behind a list row item.

  • .listRowHoverEffect() xrOS 1.0

    Requests that the containing list row use the provided hover effect.

  • .listRowHoverEffectDisabled() xrOS 1.0

    Requests that the containing list row have its hover effect disabled.

  • .listRowInsets() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Applies an inset to the rows in a list.

  • .listRowPlatterColor() Deprecated watchOS 6.0

    Sets the color that the system applies to the row background when this view is placed in a list.

    → Use listItemTint(_:) instead.

  • .listRowSeparator() iOS 15.0 macOS 13.0 xrOS 1.0

    Sets the display mode for the separator associated with this specific row.

  • .listRowSeparatorTint() iOS 15.0 macOS 13.0 xrOS 1.0

    Sets the tint color associated with a row.

  • .listRowSpacing() iOS 15.0 xrOS 1.0

    Sets the vertical spacing between two adjacent rows in a List.

  • .listSectionSeparator() iOS 15.0 macOS 13.0 xrOS 1.0

    Sets whether to hide the separator associated with a list section.

  • .listSectionSeparatorTint() iOS 15.0 macOS 13.0 xrOS 1.0

    Sets the tint color associated with a section.

  • .listSectionSpacing() iOS 17.0 watchOS 10.0 xrOS 1.0

    Sets the spacing between adjacent sections in a List.

  • .listStyle() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the style for lists within this view.

  • .luminanceToAlpha() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Adds a luminance to alpha effect to this view.

  • .manageSubscriptionsSheet() StoreKit iOS 15.0 xrOS 1.0

  • .mask() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Masks this view using the alpha channel of the given view.

  • .matchedGeometryEffect() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Defines a group of views with synchronized geometry using an identifier and namespace that you provide.

  • .menuActionDismissBehavior() iOS 16.4 macOS 13.3 watchOS 9.4 tvOS 16.4 xrOS 1.0

    Tells a menu whether to dismiss after performing an action.

  • .menuButtonStyle() Deprecated macOS 10.15

    Sets the style for menu buttons within this view.

    → Use menuStyle(_:) instead.

  • .menuIndicator() iOS 15.0 macOS 12.0 tvOS 17.0 xrOS 1.0

    Sets the menu indicator visibility for controls within this view.

  • .menuOrder() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Sets the preferred order of items for menus presented from this view.

  • .menuStyle() iOS 14.0 macOS 11.0 tvOS 17.0 xrOS 1.0

    Sets the style for menus within this view.

  • .minimumScaleFactor() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the minimum amount that text in this view scales down to fit in the available space.

  • .modelContainer() SwiftData iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0

    Sets the model container and associated model context in this view’s environment.

  • .modelContext() SwiftData iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0

    Sets the model context in this view’s environment.

  • .modifier() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Applies a modifier to a view and returns a new view.

  • .monospaced() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Modifies the fonts of all child views to use the fixed-width variant of the current font, if possible.

  • .monospacedDigit() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Modifies the fonts of all child views to use fixed-width digits, if possible, while leaving other characters proportionally spaced.

  • .moveDisabled() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Adds a condition for whether the view’s view hierarchy is movable.

  • .multilineTextAlignment() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the alignment of a text view that contains multiple lines of text.

  • .musicSubscriptionOffer() MusicKit iOS 15.0 macOS 12.0

    Initiates the process of presenting a sheet with subscription offers for Apple Music when the isPresented binding is true.

  • .navigationBarBackButtonHidden() iOS 13.0 macOS 13.0 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Hides the navigation bar back button for the view.

  • .navigationBarHidden() Deprecated iOS 13.0 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Hides the navigation bar for this view.

    → Use toolbar(_:for:) with the Visibility.hidden visibility and the navigationBar placement instead.

  • .navigationBarItems() Deprecated iOS 13.0 tvOS 13.0 xrOS 1.0

    Sets the navigation bar items for this view.

    → Use toolbar(content:) with navigationBarLeading placement.

  • .navigationBarTitle() Deprecated iOS 13.0 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the title in the navigation bar for this view.

    → Use navigationTitle(_:) instead.

  • .navigationBarTitleDisplayMode() iOS 14.0 watchOS 8.0 xrOS 1.0

    Configures the title display mode for this view.

  • .navigationDestination() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Associates a destination view with a presented data type for use within a navigation stack.

  • .navigationDocument() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Configures the view’s document for purposes of navigation.

  • .navigationSplitViewColumnWidth() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Sets a fixed, preferred width for the column containing this view.

  • .navigationSplitViewStyle() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Sets the style for navigation split views within this view.

  • .navigationSubtitle() macOS 11.0 Catalyst 14.0

    Configures the view’s subtitle for purposes of navigation.

  • .navigationTitle() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Configures the view’s title for purposes of navigation.

  • .navigationViewStyle() Deprecated iOS 13.0 macOS 10.15 watchOS 7.0 tvOS 13.0 xrOS 1.0

    Sets the style for navigation views within this view.

    → Replace a styled NavigationView with a NavigationStack or NavigationSplitView.

  • .offerCodeRedemption() StoreKit iOS 16.0 xrOS 1.0

    Presents a sheet that enables users to redeem subscription offer codes that you configure in App Store Connect.

  • .offset() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Offset this view by the horizontal and vertical amount specified in the offset parameter.

  • .onAppear() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Adds an action to perform before this view appears.

  • .onChange() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Adds a modifier for this view that fires an action when a specific value changes.

  • .onCommand() macOS 10.15

    Adds an action to perform in response to the given selector.

  • .onContinueUserActivity() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Registers a handler to invoke when the view receives the specified activity type for the scene or window the view is in.

  • .onContinuousHover() iOS 16.0 macOS 13.0 tvOS 16.0 xrOS 1.0

    Adds an action to perform when the pointer enters, moves within, and exits the view’s bounds.

  • .onCopyCommand() macOS 10.15

    Adds an action to perform in response to the system’s Copy command.

  • .onCutCommand() macOS 10.15

    Adds an action to perform in response to the system’s Cut command.

  • .onDeleteCommand() macOS 10.15

    Adds an action to perform in response to the system’s Delete command, or pressing either the ⌫ (backspace) or ⌦ (forward delete) keys while the view has focus.

  • .onDisappear() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Adds an action to perform after this view disappears.

  • .onDrag() iOS 13.4 macOS 10.15 xrOS 1.0

    Activates this view as the source of a drag and drop operation.

  • .onDrop() iOS 13.4 macOS 10.15 xrOS 1.0

    Defines the destination of a drag and drop operation using behavior controlled by the delegate that you provide.

  • .onExitCommand() macOS 10.15 tvOS 13.0

    Sets up an action that triggers in response to receiving the exit command while the view has focus.

  • .onHover() iOS 13.4 macOS 10.15 xrOS 1.0

    Adds an action to perform when the user moves the pointer over or away from the view’s frame.

  • .onInAppPurchaseCompletion() StoreKit iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Add an action to perform when a purchase initiated from an in-app store within this view completes.

  • .onInAppPurchaseStart() StoreKit iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Add an action to perform when a user triggers the purchase button on an in-app store within this view.

  • .onKeyPress() iOS 17.0 macOS 14.0 tvOS 17.0 xrOS 1.0

    Performs an action if the user presses a key on a hardware keyboard while the view has focus.

  • .onLongPressGesture() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 14.0 xrOS 1.0

    Adds an action to perform when this view recognizes a long press gesture.

  • .onLongTouchGesture() tvOS 16.0

    Adds an action to perform when this view recognizes a remote long touch gesture. A long touch gesture is when the finger is on the remote touch surface without actually pressing.

  • .onMoveCommand() macOS 10.15 tvOS 13.0

    Adds an action to perform in response to a move command, like when the user presses an arrow key on a Mac keyboard, or taps the edge of the Siri Remote when controlling an Apple TV.

  • .onOpenURL() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Registers a handler to invoke when the view receives a url for the scene or window the view is in.

  • .onPasteCommand() macOS 10.15

    Adds an action to perform in response to the system’s Paste command.

  • .onPlayPauseCommand() tvOS 13.0

    Adds an action to perform in response to the system’s Play/Pause command.

  • .onPreferenceChange() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Adds an action to perform when the specified preference key’s value changes.

  • .onReceive() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Adds an action to perform when this view detects data emitted by the given publisher.

  • .onSubmit() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Adds an action to perform when the user submits a value to this view.

  • .onTapGesture() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 16.0 xrOS 1.0

    Adds an action to perform when this view recognizes a tap gesture.

  • .opacity() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the transparency of this view.

  • .ornament() xrOS 1.0

    Presents an ornament.

  • .overlay() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Layers the views that you specify in front of this view.

  • .overlayPreferenceValue() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Reads the specified preference value from the view, using it to produce a second view that is applied as an overlay to the original view.

  • .padding() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Adds a specific padding amount to each edge of this view.

  • .padding3D() xrOS 1.0

    Pads this view using the edge insets you specify.

  • .pageCommand() tvOS 14.3

    Steps a value through a range in response to page up or page down commands.

  • .paletteSelectionEffect() iOS 17.0 macOS 14.0 xrOS 1.0

    Specifies the selection effect to apply to a palette item.

  • .pasteDestination() macOS 13.0

    Specifies an action that adds validated items to a view in response to the system’s Paste command.

  • .persistentSystemOverlays() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Sets the preferred visibility of the non-transient system views overlaying the app.

  • .perspectiveRotationEffect() xrOS 1.0

    Rotates this view’s rendered output in three dimensions around the given axis of rotation.

  • .phaseAnimator() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Cycles through the given phases continuously, updating the content using the view builder closure that you supply.

  • .photosPicker() Photos iOS 16.0 macOS 13.0 watchOS 9.0

    Presents a Photos picker that selects a PhotosPickerItem.

  • .photosPickerAccessoryVisibility() Photos iOS 17.0 macOS 14.0

    Sets the accessory visibility of the Photos picker. Accessories include anything between the content and the edge, like the navigation bar or the sidebar.

  • .photosPickerDisabledCapabilities() Photos iOS 17.0 macOS 14.0

    Disables capabilities of the Photos picker.

  • .photosPickerStyle() Photos iOS 17.0 macOS 14.0

    Sets the mode of the Photos picker.

  • .pickerStyle() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the style for pickers within this view.

  • .popover() iOS 13.0 macOS 10.15 xrOS 1.0

    Presents a popover using the given item as a data source for the popover’s content.

  • .position() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Positions the center of this view at the specified point in its parent’s coordinate space.

  • .preference() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets a value for the given preference.

  • .preferredColorScheme() iOS 13.0 macOS 11.0 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the preferred color scheme for this presentation.

  • .preferredSurroundingsEffect() xrOS 1.0

    Sets the preference for the video passthrough effect of the user’s surroundings. Use nil to state no preference. Note that this modifier only sets a preference and ultimately the system will decide if it will honor it or not.

  • .prefersDefaultFocus() macOS 12.0 watchOS 7.0 tvOS 14.0

    Indicates that the view should receive focus by default for a given namespace.

  • .presentationBackground() iOS 16.4 macOS 13.3 watchOS 9.4 tvOS 16.4 xrOS 1.0

    Sets the presentation background of the enclosing sheet using a shape style.

  • .presentationBackgroundInteraction() iOS 16.4 macOS 13.3 watchOS 9.4 tvOS 16.4 xrOS 1.0

    Controls whether people can interact with the view behind a presentation.

  • .presentationCompactAdaptation() iOS 16.4 macOS 13.3 watchOS 9.4 tvOS 16.4 xrOS 1.0

    Specifies how to adapt a presentation to compact size classes.

  • .presentationContentInteraction() iOS 16.4 macOS 13.3 watchOS 9.4 tvOS 16.4 xrOS 1.0

    Configures the behavior of swipe gestures on a presentation.

  • .presentationCornerRadius() iOS 16.4 macOS 13.3 watchOS 9.4 tvOS 16.4 xrOS 1.0

    Requests that the presentation have a specific corner radius.

  • .presentationDetents() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Sets the available detents for the enclosing sheet.

  • .presentationDragIndicator() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Sets the visibility of the drag indicator on top of a sheet.

  • .presentedWindowStyle() macOS 11.0

    Sets the style for windows created by interacting with this view.

  • .presentedWindowToolbarStyle() macOS 11.0

    Sets the style for the toolbar in windows created by interacting with this view.

  • .previewContext() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Declares a context for the preview.

  • .previewDevice() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Overrides the device for a preview.

  • .previewDisplayName() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets a user visible name to show in the canvas for a preview.

  • .previewInterfaceOrientation() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Overrides the orientation of the preview.

  • .previewLayout() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Overrides the size of the container for the preview.

  • .privacySensitive() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Marks the view as containing sensitive, private user data.

  • .productViewStyle() StoreKit iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Sets the style for in-app store products within a view.

  • .progressViewStyle() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Sets the style for progress views in this view.

  • .projectionEffect() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Applies a projection transformation to this view’s rendered output.

  • .quickLookPreview() QuickLook iOS 14.0 macOS 11.0

    Presents a Quick Look preview of the contents of a single URL.

  • .redacted() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Adds a reason to apply a redaction to this view hierarchy.

  • .refreshable() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Marks this view as refreshable.

  • .refundRequestSheet() StoreKit iOS 15.0 macOS 14.0 xrOS 1.0

    Display the refund request sheet for the given transaction.

  • .renameAction() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Sets a closure to run for the rename action.

  • .replaceDisabled() iOS 16.0 xrOS 1.0

    Prevents replace operations in a text editor.

  • .rotation3DEffect() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Rotates this view’s rendered output in three dimensions around the given axis of rotation.

  • .rotationEffect() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Rotates this view’s rendered output around the specified point.

  • .safeAreaInset() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Shows the specified content beside the modified view.

  • .safeAreaPadding() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Adds the provided insets into the safe area of this view.

  • .saturation() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Adjusts the color saturation of this view.

  • .scaledToFill() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Scales this view to fill its parent.

  • .scaledToFit() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Scales this view to fit its parent.

  • .scaleEffect() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Scales this view’s rendered output by the given vertical and horizontal size amounts, relative to an anchor point.

  • .scenePadding() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Adds padding to the specified edges of this view using an amount that’s appropriate for the current scene.

  • .scrollBounceBehavior() iOS 16.4 macOS 13.3 watchOS 9.4 tvOS 16.4 xrOS 1.0

    Configures the bounce behavior of scrollable views along the specified axis.

  • .scrollClipDisabled() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Sets whether a scroll view clips its content to its bounds.

  • .scrollContentBackground() iOS 16.0 macOS 13.0 watchOS 9.0 xrOS 1.0

    Specifies the visibility of the background for scrollable views within this view.

  • .scrollDisabled() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Disables or enables scrolling in scrollable views.

  • .scrollDismissesKeyboard() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0

    Configures the behavior in which scrollable content interacts with the software keyboard.

  • .scrollIndicators() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Sets the visibility of scroll indicators within this view.

  • .scrollIndicatorsFlash() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Flashes the scroll indicators of scrollable views when a value changes.

  • .scrollPosition() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Associates a binding to be updated when a scroll view within this view scrolls.

  • .scrollTarget() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Configures this view as a scroll target.

  • .scrollTargetBehavior() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Sets the scroll behavior of views scrollable in the provided axes.

  • .scrollTargetLayout() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Configures the outermost layout as a scroll target layout.

  • .scrollTransition() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Applies the given transition, animating between the phases of the transition as this view appears and disappears within the visible region of the containing scroll view, or other container specified using the coordinateSpace parameter.

  • .searchable() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Marks this view as searchable, which configures the display of a search field.

  • .searchCompletion() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Associates a fully formed string with the value of this view.

  • .searchDictationBehavior() iOS 17.0 xrOS 1.0

  • .searchScopes() iOS 16.0 macOS 13.0 tvOS 16.4 xrOS 1.0

    Configures the search scopes for this view.

  • .searchSuggestions() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Configures the search suggestions for this view.

  • .selectionDisabled() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Adds a condition that controls whether users can select this view.

  • .sensoryFeedback() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0

    Plays the specified feedback when the provided trigger value changes.

  • .shadow() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Adds a shadow to this view.

  • .sheet() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Presents a sheet using the given item as a data source for the sheet’s content.

  • .shortcutsLinkStyle() AppIntents iOS 16.0

    Sets the given style for ShortcutsLinks within the view hierarchy

  • .signInWithAppleButtonStyle() AuthenticationServices iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0

    Sets the style used for displaying the control (see SignInWithAppleButton.Style).

  • .simultaneousGesture() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Attaches a gesture to the view to process simultaneously with gestures defined by the view.

  • .siriTipViewStyle() AppIntents iOS 16.0

    Sets the given style for SiriTipView within the view hierarchy

  • .speechAdjustedPitch() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Raises or lowers the pitch of spoken text.

  • .speechAlwaysIncludesPunctuation() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Sets whether VoiceOver should always speak all punctuation in the text view.

  • .speechAnnouncementsQueued() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Controls whether to queue pending announcements behind existing speech rather than interrupting speech in progress.

  • .speechSpellsOutCharacters() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Sets whether VoiceOver should speak the contents of the text view character by character.

  • .springLoadingBehavior() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Sets the spring loading behavior this view.

  • .statusBar() Deprecated iOS 13.0 xrOS 1.0

    Sets the visibility of the status bar.

    → Use statusBarHidden(_:) instead.

  • .statusBarHidden() iOS 13.0 xrOS 1.0

    Sets the visibility of the status bar.

  • .storeButton() StoreKit iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Specifies the visibility of certain kinds of auxiliary buttons used by StoreView or SubscriptionStoreView instances within the view.

  • .storeProductsTask() StoreKit iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Declares the view as dependent on a collection of in-app purchase products and returns a modified view.

  • .storeProductTask() StoreKit iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Declares the view as dependent on the in-app purchase product for id and returns a modified view.

  • .strikethrough() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Applies a strikethrough to the text in this view.

  • .submitLabel() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Sets the submit label for this view.

  • .submitScope() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Prevents submission triggers originating from this view to invoke a submission action configured by a submission modifier higher up in the view hierarchy.

  • .subscriptionStatusTask() StoreKit iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Declares the view as dependent on the status of an auto-renewable subscription group for groupID and returns a modified view.

  • .subscriptionStoreButtonLabel() StoreKit iOS 17.0 macOS 14.0 watchOS 10.0 xrOS 1.0

    Configures in-app subscription store instances within a view to use a certain button label.

  • .subscriptionStoreControlIcon() StoreKit iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Set a view to use to decorate individual subscription options within a SubscriptionStoreView.

  • .subscriptionStoreControlStyle() StoreKit iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Sets the control style for in-app subscription stores within a view.

  • .subscriptionStorePickerItemBackground() StoreKit iOS 17.0 macOS 14.0 watchOS 10.0 xrOS 1.0

    Sets the background style for picker items of SubscriptionStoreView instances within this view.

  • .subscriptionStorePolicyDestination() StoreKit iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Configures a view as the destination when someone chooses to view the corresponding policy in a SubscriptionStoreView within this view.

  • .subscriptionStorePolicyForegroundStyle() StoreKit iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Sets the style for terms of service or privacy policy buttons created by SubscriptionStoreView within a view.

  • .subscriptionStoreSignInAction() StoreKit iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Add an action to perform when someone triggers the sign in button on a SubscriptionStoreView within this view.

  • .swipeActions() iOS 15.0 macOS 12.0 watchOS 8.0 xrOS 1.0

    Adds custom swipe actions to a row in a list.

  • .symbolEffect() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Returns a new view with a symbol effect added to it.

  • .symbolEffectsRemoved() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Returns a new view with its inherited symbol image effects either removed or left unchanged.

  • .symbolRenderingMode() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Sets the rendering mode for symbol images within this view.

  • .symbolVariant() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Makes symbols within the view show a particular variant.

  • .tabItem() iOS 13.0 macOS 10.15 watchOS 7.0 tvOS 13.0 xrOS 1.0

    Sets the tab bar item associated with this view.

  • .tableColumnHeaders() iOS 17.0 macOS 14.0 xrOS 1.0

    Controls the visibility of a Table’s column header views.

  • .tableStyle() iOS 16.0 macOS 12.0 xrOS 1.0

    Sets the style for tables within this view.

  • .tabViewStyle() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Sets the style for the tab view within the current environment.

  • .tag() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the unique tag value of this view.

  • .task() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Adds an asynchronous task to perform before this view appears.

  • .textCase() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Sets a transform for the case of the text contained in this view when displayed.

  • .textContentType() iOS 13.0 macOS 11.0 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the text content type for this view, which the system uses to offer suggestions while the user enters text on an iOS or tvOS device.

  • .textEditorStyle() iOS 17.0 macOS 14.0 xrOS 1.0

    Sets the style for text editors within this view.

  • .textFieldStyle() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the style for text fields within this view.

  • .textInputAutocapitalization() iOS 15.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Sets how often the shift key in the keyboard is automatically enabled.

  • .textScale() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Applies a text scale to text in the view.

  • .textSelection() iOS 15.0 macOS 12.0 xrOS 1.0

    Controls whether people can select text within this view.

  • .tint() iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Sets the tint within this view.

  • .toggleStyle() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the style for toggles in a view hierarchy.

  • .toolbar() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Populates the toolbar or navigation bar with the specified items.

  • .toolbarBackground() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Specifies the preferred visibility of backgrounds on a bar managed by SwiftUI.

  • .toolbarColorScheme() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Specifies the preferred color scheme of a bar managed by SwiftUI.

  • .toolbarRole() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Configures the semantic role for the content populating the toolbar.

  • .toolbarTitleDisplayMode() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Configures the toolbar title display mode for this view.

  • .toolbarTitleMenu() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Configure the title menu of a toolbar.

  • .touchBar() macOS 10.15

    Sets the Touch Bar content to be shown in the Touch Bar when applicable.

  • .touchBarCustomizationLabel() macOS 10.15

    Sets a user-visible string that identifies the view’s functionality.

  • .touchBarItemPresence() macOS 10.15

    Sets the behavior of the user-customized view.

  • .touchBarItemPrincipal() macOS 10.15

    Sets principal views that have special significance to this Touch Bar.

  • .tracking() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Sets the tracking for the text in this view.

  • .transaction() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Applies the given transaction mutation function to all animations used within the view.

  • .transform3DEffect() xrOS 1.0

    Applies a 3D transformation to the receiver.

  • .transformAnchorPreference() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets a value for the specified preference key, the value is a function of the key’s current value and a geometry value tied to the current coordinate space, allowing readers of the value to convert the geometry to their local coordinates.

  • .transformEffect() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Applies an affine transformation to this view’s rendered output.

  • .transformEnvironment() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Transforms the environment value of the specified key path with the given function.

  • .transformPreference() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Applies a transformation to a preference value.

  • .transition() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Associates a transition with the view.

  • .truncationMode() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Sets the truncation mode for lines of text that are too long to fit in the available space.

  • .typeSelectEquivalent() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Sets an explicit type select equivalent text in a collection, such as a list or table.

  • .typesettingLanguage() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Specifies the language for typesetting.

  • .underline() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Applies an underline to the text in this view.

  • .unredacted() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Removes any reason to apply a redaction to this view hierarchy.

  • .userActivity() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Advertises a user activity type.

  • .visualEffect() iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Applies effects to this view, while providing access to layout information via GeometryProxy.

  • .visualEffect3D() xrOS 1.0

    Applies effects to this view, while providing access to layout information via GeometryProxy3D.

  • .widgetAccentable() WidgetKit iOS 16.0 macOS 13.0 watchOS 9.0 xrOS 1.0

    Adds the view and all of its subviews to the accented group.

  • .widgetCurvesContent() WidgetKit iOS 17.0 watchOS 10.0 xrOS 1.0

    Displays the widget’s content along a curve if the context allows it.

  • .widgetLabel() WidgetKit iOS 16.0 watchOS 9.0 xrOS 1.0

    Returns a text label that displays additional content outside the accessory family widget’s main SwiftUI view.

  • .widgetURL() WidgetKit iOS 14.0 macOS 11.0 watchOS 9.0 xrOS 1.0

    Sets the URL to open in the containing app when the user clicks the widget.

  • .zIndex() iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Controls the display order of overlapping views.

Scene Modifiers

  • .backgroundTask() iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    Runs the specified action when the system provides a background task.

  • .commands() iOS 14.0 macOS 11.0 xrOS 1.0

    Adds commands to the scene.

  • .commandsRemoved() iOS 16.0 macOS 13.0 xrOS 1.0

    Removes all commands defined by the modified scene.

  • .commandsReplaced() iOS 16.0 macOS 13.0 xrOS 1.0

    Replaces all commands defined by the modified scene with the commands from the builder.

  • .defaultAppStorage() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    The default store used by AppStorage contained within the scene and its view content.

  • .defaultPosition() macOS 13.0

    Sets a default position for a window.

  • .defaultSize() iOS 17.0 macOS 13.0 xrOS 1.0

    Sets a default size for a window.

  • .handlesExternalEvents() iOS 14.0 macOS 11.0 xrOS 1.0

    Specifies a modifier to indicate if this Scene can be used when creating a new Scene for the received External Event.

  • .immersionStyle() xrOS 1.0

    Sets the allowed styles for the immersive space.

  • .keyboardShortcut() macOS 13.0

    Defines a keyboard shortcut for opening new scene windows.

  • .modelContainer() SwiftData iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0

    Sets the model container and associated model context in this scene’s environment.

  • .modelContext() SwiftData iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0

    Sets the model context in this scene’s environment.

  • .onChange() iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Adds an action to perform when the given value changes.

  • .windowResizability() iOS 17.0 macOS 13.0 xrOS 1.0

    Sets the kind of resizability to use for a window.

  • .windowStyle() macOS 11.0 xrOS 1.0

    Sets the style for windows created by this scene.

  • .windowToolbarStyle() macOS 11.0

    Sets the style for the toolbar defined within this scene.

Environment Values

  • \.accessibilityDifferentiateWithoutColor iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Whether the system preference for Differentiate without Color is enabled.

  • \.accessibilityDimFlashingLights iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Whether the setting to reduce flashing or strobing lights in video content is on. This setting can also be used to determine if UI in playback controls should be shown to indicate upcoming content that includes flashing or strobing lights.

  • \.accessibilityEnabled iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A Boolean value that indicates whether the user has enabled an assistive technology.

  • \.accessibilityInvertColors iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Whether the system preference for Invert Colors is enabled.

  • \.accessibilityLargeContentViewerEnabled iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    Whether the Large Content Viewer is enabled.

  • \.accessibilityPlayAnimatedImages iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Whether the setting for playing animations in an animated image is on. When this value is false, any presented image that contains animation should not play automatically.

  • \.accessibilityPrefersCameraAnchorAlternative xrOS 1.0

    Whether the system setting to prefer alternatives to camera-anchored content is on.

  • \.accessibilityQuickActionsEnabled iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    A Boolean that indicates whether the quick actions feature is enabled.

  • \.accessibilityReduceMotion iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Whether the system preference for Reduce Motion is enabled.

  • \.accessibilityReduceTransparency iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    Whether the system preference for Reduce Transparency is enabled.

  • \.accessibilityShowButtonShapes iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Whether the system preference for Show Button Shapes is enabled.

  • \.accessibilitySwitchControlEnabled iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    A Boolean value that indicates whether the Switch Control motor accessibility feature is in use.

  • \.accessibilityVoiceOverEnabled iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    A Boolean value that indicates whether the VoiceOver screen reader is in use.

  • \.allowedDynamicRange iOS 17.0 macOS 14.0 tvOS 17.0 xrOS 1.0

    The allowed dynamic range for the view, or nil.

  • \.allowsTightening iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A Boolean value that indicates whether inter-character spacing should tighten to fit the text into the available space.

  • \.authorizationController AuthenticationServices iOS 16.4 macOS 13.3 watchOS 9.4 tvOS 16.4

    A value provided in the SwiftUI environment that views can use to perform authorization requests.

  • \.autocorrectionDisabled iOS 13.0 macOS 10.15 watchOS 8.0 tvOS 13.0 xrOS 1.0

    A Boolean value that determines whether the view hierarchy has auto-correction enabled.

  • \.backgroundMaterial iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    The material underneath the current view.

  • \.backgroundProminence iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    The prominence of the background underneath views associated with this environment.

  • \.backgroundStyle iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    An optional style that overrides the default system background style when set.

  • \.badgeProminence iOS 17.0 macOS 14.0 xrOS 1.0

    The prominence to apply to badges associated with this environment.

  • \.buttonRepeatBehavior iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    Whether buttons with this associated environment should repeatedly trigger their actions on prolonged interactions.

  • \.calendar iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    The current calendar that views should use when handling dates.

  • \.colorScheme iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    The color scheme of this environment.

  • \.colorSchemeContrast iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    The contrast associated with the color scheme of this environment.

  • \.contentTransition iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    The current method of animating the contents of views.

  • \.contentTransitionAddsDrawingGroup iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    A Boolean value that controls whether views that render content transitions use GPU-accelerated rendering.

  • \.controlActiveState macOS 10.15

    The active state of controls in the view.

  • \.controlSize iOS 15.0 macOS 10.15 watchOS 9.0 xrOS 1.0

    The size to apply to controls within a view.

  • \.defaultMinListHeaderHeight iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    The default minimum height of a header in a list.

  • \.defaultMinListRowHeight iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    The default minimum height of a row in a list.

  • \.defaultWheelPickerItemHeight watchOS 6.0

    The default height of an item in a wheel-style picker, such as a date picker.

  • \.description iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A string that represents the contents of the environment values instance.

  • \.disableAutocorrection Deprecated iOS 13.0 macOS 10.15 watchOS 8.0 tvOS 13.0 xrOS 1.0

    A Boolean value that determines whether the view hierarchy has auto-correction enabled.

  • \.dismiss iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    An action that dismisses the current presentation.

  • \.dismissImmersiveSpace xrOS 1.0

    An immersive space dismissal action stored in a view’s environment.

  • \.dismissSearch iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    An action that ends the current search interaction.

  • \.dismissWindow iOS 17.0 macOS 14.0 xrOS 1.0

    A window dismissal action stored in a view’s environment.

  • \.displayScale iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    The display scale of this environment.

  • \.displayStoreKitMessage StoreKit iOS 16.0 xrOS 1.0

  • \.documentConfiguration iOS 17.0 macOS 14.0 xrOS 1.0

    The configuration of a document in a DocumentGroup.

  • \.dynamicTypeSize iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    The current Dynamic Type size.

  • \.editMode iOS 13.0 tvOS 13.0 xrOS 1.0

    An indication of whether the user can edit the contents of a view associated with this environment.

  • \.font iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    The default font of this environment.

  • \.headerProminence iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    The prominence to apply to section headers within a view.

  • \.horizontalScrollBounceBehavior iOS 16.4 macOS 13.3 watchOS 9.4 tvOS 16.4 xrOS 1.0

    The scroll bounce mode for the horizontal axis of scrollable views.

  • \.horizontalScrollIndicatorVisibility iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    The visibility to apply to scroll indicators of any horizontally scrollable content.

  • \.horizontalSizeClass iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    The horizontal size class of this environment.

  • \.imageScale iOS 13.0 macOS 11.0 watchOS 6.0 tvOS 13.0 xrOS 1.0

    The image scale for this environment.

  • \.isActivityFullscreen WidgetKit iOS 16.1 xrOS 1.0

    A Boolean value that indicates whether the Live Activity appears in a full-screen presentation.

  • \.isEnabled iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A Boolean value that indicates whether the view associated with this environment allows user interaction.

  • \.isFocused iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    Returns whether the nearest focusable ancestor has focus.

  • \.isFocusEffectEnabled iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    A Boolean value that indicates whether the view associated with this environment allows focus effects to be displayed.

  • \.isHoverEffectEnabled iOS 17.0 tvOS 17.0 xrOS 1.0

    A Boolean value that indicates whether the view associated with this environment allows hover effects to be displayed.

  • \.isLuminanceReduced iOS 16.0 macOS 13.0 watchOS 8.0 tvOS 16.0 xrOS 1.0

    A Boolean value that indicates whether the display or environment currently requires reduced luminance.

  • \.isPresented iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    A Boolean value that indicates whether the view associated with this environment is currently presented.

  • \.isScrollEnabled iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    A Boolean value that indicates whether any scroll views associated with this environment allow scrolling to occur.

  • \.isSearching iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    A Boolean value that indicates when the user is searching.

  • \.keyboardShortcut iOS 15.0 macOS 12.0 xrOS 1.0

    The keyboard shortcut that buttons in this environment will be triggered with.

  • \.layoutDirection iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    The layout direction associated with the current environment.

  • \.legibilityWeight iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    The font weight to apply to text.

  • \.lineLimit iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    The maximum number of lines that text can occupy in a view.

  • \.lineSpacing iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    The distance in points between the bottom of one line fragment and the top of the next.

  • \.locale iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    The current locale that views should use.

  • \.managedObjectContext iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

  • \.menuIndicatorVisibility iOS 15.0 macOS 12.0 tvOS 17.0 xrOS 1.0

    The menu indicator visibility to apply to controls within a view.

  • \.menuOrder iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    The preferred order of items for menus presented from this view.

  • \.minimumScaleFactor iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    The minimum permissible proportion to shrink the font size to fit the text into the available space.

  • \.modelContext SwiftData iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0

    The SwiftData model context that will be used for queries and other model operations within this environment.

  • \.multilineTextAlignment iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    An environment value that indicates how a text view aligns its lines when the content wraps or contains newlines.

  • \.newDocument macOS 13.0

    An action in the environment that presents a new document.

  • \.openDocument macOS 13.0

    An action in the environment that presents an existing document.

  • \.openImmersiveSpace xrOS 1.0

    An action that presents an immersive space.

  • \.openURL iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    An action that opens a URL.

  • \.openWindow iOS 16.0 macOS 13.0 xrOS 1.0

    An window presentation action stored in a view’s environment.

  • \.physicalMetrics xrOS 1.0

    The physical metrics associated with a scene.

  • \.pixelLength iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    The size of a pixel on the screen.

  • \.presentationMode Deprecated iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A binding to the current presentation mode of the view associated with this environment.

    → Use isPresented or dismiss instead.

  • \.purchase StoreKit iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    An action that starts an in-app purchase.

  • \.redactionReasons iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    The current redaction reasons applied to the view hierarchy.

  • \.refresh iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    A refresh action stored in a view’s environment.

  • \.rename iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    An action that activates the standard rename interaction.

  • \.requestReview StoreKit iOS 16.0 macOS 13.0 xrOS 1.0

  • \.resetFocus macOS 12.0 watchOS 7.0 tvOS 14.0

    An action that requests the focus system to reevaluate default focus.

  • \.scenePhase iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    The current phase of the scene.

  • \.scrollDismissesKeyboardMode iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0

    The way that scrollable content interacts with the software keyboard.

  • \.searchSuggestionsPlacement iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    The current placement of search suggestions.

  • \.showsWidgetContainerBackground WidgetKit iOS 15.0 macOS 12.0 watchOS 8.0 xrOS 1.0

    An environment variable that indicates whether the background of a widget appears.

  • \.showsWidgetLabel WidgetKit iOS 16.0 watchOS 9.0 xrOS 1.0

    A Boolean value that indicates whether an accessory family widget can display an accessory label.

  • \.sidebarRowSize iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    The current size of sidebar rows.

  • \.sizeCategory Deprecated iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    The size of content.

    → Use dynamicTypeSize instead.

  • \.springLoadingBehavior iOS 17.0 macOS 14.0 watchOS 10.0 tvOS 17.0 xrOS 1.0

    The behavior of spring loaded interactions for the views associated with this environment.

  • \.supportsMultipleWindows iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    A Boolean value that indicates whether the current platform supports opening multiple windows.

  • \.symbolRenderingMode iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    The current symbol rendering mode, or nil denoting that the mode is picked automatically using the current image and foreground style as parameters.

  • \.symbolVariants iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    The symbol variant to use in this environment.

  • \.textCase iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A stylistic override to transform the case of Text when displayed, using the environment’s locale.

  • \.timeZone iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    The current time zone that views should use when handling dates.

  • \.truncationMode iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A value that indicates how the layout truncates the last line of text to fit into the available space.

  • \.undoManager iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    The undo manager used to register a view’s undo operations.

  • \.verticalScrollBounceBehavior iOS 16.4 macOS 13.3 watchOS 9.4 tvOS 16.4 xrOS 1.0

    The scroll bounce mode for the vertical axis of scrollable views.

  • \.verticalScrollIndicatorVisibility iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    The visiblity to apply to scroll indicators of any vertically scrollable content.

  • \.verticalSizeClass iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    The vertical size class of this environment.

  • \.webAuthenticationSession AuthenticationServices iOS 16.4 macOS 13.3 watchOS 9.4 tvOS 16.4

    A value provided in the SwiftUI environment that views can use to authenticate a user through a web service.

  • \.widgetContentMargins WidgetKit iOS 17.0 macOS 14.0 watchOS 10.0 xrOS 1.0

    A property that identifies the content margins of a widget.

  • \.widgetFamily WidgetKit iOS 14.0 macOS 11.0 watchOS 9.0 xrOS 1.0

    The template of the widget — small, medium, or large.

  • \.widgetRenderingMode WidgetKit iOS 16.0 macOS 13.0 watchOS 9.0 xrOS 1.0

    The widget’s rendering mode, based on where the system is displaying it.

Property Wrappers

  • @AccessibilityFocusState iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    A property wrapper type that can read and write a value that SwiftUI updates as the focus of any active accessibility technology, such as VoiceOver, changes.

  • @AppStorage iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A property wrapper type that reflects a value from UserDefaults and invalidates a view on a change in value in that user default.

  • @Binding iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A property wrapper type that can read and write a value owned by a source of truth.

  • @Environment iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A property wrapper that reads a value from a view’s environment.

  • @EnvironmentObject iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A property wrapper type for an observable object supplied by a parent or ancestor view.

  • @FetchRequest iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A property wrapper type that retrieves entities from a Core Data persistent store.

  • @FocusedBinding iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A convenience property wrapper for observing and automatically unwrapping state bindings from the focused view or one of its ancestors.

  • @FocusedObject iOS 16.0 macOS 13.0 watchOS 9.0 tvOS 16.0 xrOS 1.0

    A property wrapper type for an observable object supplied by the focused view or one of its ancestors.

  • @FocusedValue iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A property wrapper for observing values from the focused view or one of its ancestors.

  • @FocusState iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    A property wrapper type that can read and write a value that SwiftUI updates as the placement of focus within the scene changes.

  • @GestureState iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A property wrapper type that updates a property while the user performs a gesture and resets the property back to its initial state when the gesture ends.

  • @Namespace iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A dynamic property type that allows access to a namespace defined by the persistent identity of the object containing the property (e.g. a view).

  • @NSApplicationDelegateAdaptor macOS 11.0

    A property wrapper type that you use to create an AppKit app delegate.

  • @ObservedObject iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A property wrapper type that subscribes to an observable object and invalidates a view whenever the observable object changes.

  • @PhysicalMetric xrOS 1.0

    Provides access to a value in points that corresponds to the specified physical measurement.

  • @ScaledMetric iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A dynamic property that scales a numeric value.

  • @SceneStorage iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A property wrapper type that reads and writes to persisted, per-scene storage.

  • @SectionedFetchRequest iOS 15.0 macOS 12.0 watchOS 8.0 tvOS 15.0 xrOS 1.0

    A property wrapper type that retrieves entities, grouped into sections, from a Core Data persistent store.

  • @State iOS 13.0 macOS 10.15 watchOS 6.0 tvOS 13.0 xrOS 1.0

    A property wrapper type that can read and write a value managed by SwiftUI.

  • @StateObject iOS 14.0 macOS 11.0 watchOS 7.0 tvOS 14.0 xrOS 1.0

    A property wrapper type that instantiates an observable object.

  • @UIApplicationDelegateAdaptor iOS 14.0 tvOS 14.0 xrOS 1.0

    A property wrapper type that you use to create a UIKit app delegate.

  • @WKApplicationDelegateAdaptor watchOS 7.0

    A property wrapper that is used in App to provide a delegate from WatchKit.

  • @WKExtensionDelegateAdaptor watchOS 7.0

    A property wrapper type that you use to create a WatchKit extension delegate.