<!--
{
  "documentType" : "article",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View-Technology-modifiers",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Technology-specific modifiers"
}
-->

# Technology-specific modifiers

Add modifiers to customize SwiftUI views that other Apple frameworks provide.

## Overview

Configure and customize SwiftUI views that you integrate from other Apple frameworks, such as web views from <doc://com.apple.documentation/documentation/WebKit> or maps from <doc://com.apple.documentation/documentation/MapKit>, with these modifiers.

For more information, see [Technology-specific views](/documentation/SwiftUI/Technology-specific-views).

## Topics

### Displaying web content

  <doc://com.apple.documentation/documentation/WebKit/WebView-swift.struct>

  <doc://com.apple.documentation/documentation/WebKit/WebPage>

[`func onWebViewImmersiveEnvironmentRequest(shouldAllow: (WebPage.FrameInfo) async -> Bool, present: (WebPage.ImmersiveEnvironment) async throws -> Void, dismiss: (WebPage.ImmersiveEnvironment) async -> Void) -> some View`](/documentation/SwiftUI/View/onWebViewImmersiveEnvironmentRequest(shouldAllow:present:dismiss:))

Manages the lifecycle of immersive environments requested by websites.

[`func webViewBackForwardNavigationGestures(WebView.BackForwardNavigationGesturesBehavior) -> some View`](/documentation/SwiftUI/View/webViewBackForwardNavigationGestures(_:))

Determines whether horizontal swipe gestures trigger backward and forward page navigation.

[`func webViewContentBackground(Visibility) -> some View`](/documentation/SwiftUI/View/webViewContentBackground(_:))

Specifies the visibility of the webpage’s natural background color within this view.

[`func webViewContextMenu(menu: (WebView.ActivatedElementInfo) -> some View) -> some View`](/documentation/SwiftUI/View/webViewContextMenu(menu:))

Adds an item-based context menu to a WebView, replacing the default set of context menu items.

[`func webViewElementFullscreenBehavior(WebView.ElementFullscreenBehavior) -> some View`](/documentation/SwiftUI/View/webViewElementFullscreenBehavior(_:))

Determines whether a web view can display content full screen.

[`func webViewLinkPreviews(WebView.LinkPreviewBehavior) -> some View`](/documentation/SwiftUI/View/webViewLinkPreviews(_:))

Determines whether pressing a link displays a preview of the destination for the link.

[`func webViewMagnificationGestures(WebView.MagnificationGesturesBehavior) -> some View`](/documentation/SwiftUI/View/webViewMagnificationGestures(_:))

Determines whether magnify gestures change the view’s magnification.

[`func webViewOnScrollGeometryChange<T>(for: T.Type, of: (ScrollGeometry) -> T, action: (T, T) -> Void) -> some View`](/documentation/SwiftUI/View/webViewOnScrollGeometryChange(for:of:action:))

Adds an action to be performed when a value, created from a scroll geometry, changes.

[`func webViewScrollInputBehavior(ScrollInputBehavior, for: ScrollInputKind) -> some View`](/documentation/SwiftUI/View/webViewScrollInputBehavior(_:for:))

Enables or disables scrolling in web views when using particular inputs.

[`func webViewScrollPosition(Binding<ScrollPosition>) -> some View`](/documentation/SwiftUI/View/webViewScrollPosition(_:))

Associates a binding to a scroll position with the web view.

[`func webViewTextSelection<S>(S) -> some View`](/documentation/SwiftUI/View/webViewTextSelection(_:))

Determines whether to allow people to select or otherwise interact with text.

### Accessing Apple Pay and Wallet

  <doc://com.apple.documentation/documentation/PassKit/PayWithApplePayButton>

  <doc://com.apple.documentation/documentation/PassKit/AddPassToWalletButton>

  <doc://com.apple.documentation/documentation/PassKit/VerifyIdentityWithWalletButton>

[`func addOrderToWalletButtonStyle(AddOrderToWalletButtonStyle) -> some View`](/documentation/SwiftUI/View/addOrderToWalletButtonStyle(_:))

Sets the button’s style.

[`func addPassToWalletButtonStyle(AddPassToWalletButtonStyle) -> some View`](/documentation/SwiftUI/View/addPassToWalletButtonStyle(_:))

Sets the style to be used by the button.
(see `PKAddPassButtonStyle`).

[`func onApplePayCouponCodeChange(perform: (String) async -> PKPaymentRequestCouponCodeUpdate) -> some View`](/documentation/SwiftUI/View/onApplePayCouponCodeChange(perform:))

Called when a user has entered or updated a coupon code.
This is required if the user is being asked to provide a coupon code.

[`func onApplePayPaymentMethodChange(perform: (PKPaymentMethod) async -> PKPaymentRequestPaymentMethodUpdate) -> some View`](/documentation/SwiftUI/View/onApplePayPaymentMethodChange(perform:))

Called when a payment method has changed and asks for an update payment request.
If this modifier isn’t provided Wallet will assume the payment method is valid.

[`func onApplePayShippingContactChange(perform: (PKContact) async -> PKPaymentRequestShippingContactUpdate) -> some View`](/documentation/SwiftUI/View/onApplePayShippingContactChange(perform:))

Called when a user selected a shipping address.
This is required if the user is being asked to provide a shipping contact.

[`func onApplePayShippingMethodChange(perform: (PKShippingMethod) async -> PKPaymentRequestShippingMethodUpdate) -> some View`](/documentation/SwiftUI/View/onApplePayShippingMethodChange(perform:))

Called when a user selected a shipping method.
This is required if the user is being asked to provide a shipping method.

[`func payLaterViewAction(PayLaterViewAction) -> some View`](/documentation/SwiftUI/View/payLaterViewAction(_:))

Sets the action on the PayLaterView. See `PKPayLaterAction`.

[`func payLaterViewDisplayStyle(PayLaterViewDisplayStyle) -> some View`](/documentation/SwiftUI/View/payLaterViewDisplayStyle(_:))

Sets the display style on the PayLaterView. See `PKPayLaterDisplayStyle`.

[`func payWithApplePayButtonDisableCardArt() -> some View`](/documentation/SwiftUI/View/payWithApplePayButtonDisableCardArt())

Sets the features that should be allowed to show on the payment buttons.

[`func payWithApplePayButtonStyle(PayWithApplePayButtonStyle) -> some View`](/documentation/SwiftUI/View/payWithApplePayButtonStyle(_:))

Sets the style to be used by the button.
(see `PayWithApplePayButtonStyle`).

[`func verifyIdentityWithWalletButtonStyle(VerifyIdentityWithWalletButtonStyle) -> some View`](/documentation/SwiftUI/View/verifyIdentityWithWalletButtonStyle(_:))

Sets the style to be used by the button.
(see `PKIdentityButtonStyle`).

  <doc://com.apple.documentation/documentation/PassKit/AsyncShareablePassConfiguration>

[`func transactionTask(CredentialTransaction.Configuration?, action: (CredentialTransaction) async -> Void) -> some View`](/documentation/SwiftUI/View/transactionTask(_:action:))

Provides a task to perform before this view appears

### Authorizing and authenticating

  <doc://com.apple.documentation/documentation/LocalAuthentication/LocalAuthenticationView>

  <doc://com.apple.documentation/documentation/AuthenticationServices/SignInWithAppleButton>

[`func signInWithAppleButtonStyle(SignInWithAppleButton.Style) -> some View`](/documentation/SwiftUI/View/signInWithAppleButtonStyle(_:))

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

[`var authorizationController: AuthorizationController`](/documentation/SwiftUI/EnvironmentValues/authorizationController)

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

[`var webAuthenticationSession: WebAuthenticationSession`](/documentation/SwiftUI/EnvironmentValues/webAuthenticationSession)

A value provided in the SwiftUI environment that views can use to
authenticate a user through a web service.

### Configuring Family Sharing

  <doc://com.apple.documentation/documentation/FamilyControls/FamilyActivityPicker>

[`func familyActivityPicker(isPresented: Binding<Bool>, selection: Binding<FamilyActivitySelection>) -> some View`](/documentation/SwiftUI/View/familyActivityPicker(isPresented:selection:))

Presents an activity picker view as a sheet.

[`func familyActivityPicker(headerText: String?, footerText: String?, isPresented: Binding<Bool>, selection: Binding<FamilyActivitySelection>) -> some View`](/documentation/SwiftUI/View/familyActivityPicker(headerText:footerText:isPresented:selection:))

Presents an activity picker view as a sheet.

[`func familyActivityPicker(title: String?, headerText: String?, footerText: String?, isPresented: Binding<Bool>, selection: Binding<FamilyActivitySelection>) -> some View`](/documentation/SwiftUI/View/familyActivityPicker(title:headerText:footerText:isPresented:selection:))

Present an activity picker sheet for selecting apps and websites to manage.

### Reporting on device activity

  <doc://com.apple.documentation/documentation/DeviceActivity/DeviceActivityReport>

### Working with managed devices

[`func managedContentStyle(ManagedContentStyle) -> some View`](/documentation/SwiftUI/View/managedContentStyle(_:))

Applies a managed content style to the view.

[`func automatedDeviceEnrollmentAddition(isPresented: Binding<Bool>) -> some View`](/documentation/SwiftUI/View/automatedDeviceEnrollmentAddition(isPresented:))

Presents a modal view that enables users to add devices to their organization.

### Creating graphics

  <doc://com.apple.documentation/documentation/Charts/Chart>

  <doc://com.apple.documentation/documentation/SceneKit/SceneView>

  <doc://com.apple.documentation/documentation/SpriteKit/SpriteView>

### Getting location information

  <doc://com.apple.documentation/documentation/CoreLocationUI/LocationButton>

  <doc://com.apple.documentation/documentation/MapKit/Map>

[`func mapStyle(MapStyle) -> some View`](/documentation/SwiftUI/View/mapStyle(_:))

Specifies the map style to be used.

[`func mapScope(Namespace.ID) -> some View`](/documentation/SwiftUI/View/mapScope(_:))

Creates a mapScope that SwiftUI uses to connect map controls to an associated map.

[`func mapFeatureSelectionDisabled((MapFeature) -> Bool) -> some View`](/documentation/SwiftUI/View/mapFeatureSelectionDisabled(_:))

Specifies which map features should have selection disabled.

[`func mapFeatureSelectionAccessory(MapItemDetailSelectionAccessoryStyle?) -> some View`](/documentation/SwiftUI/View/mapFeatureSelectionAccessory(_:))

Specifies the selection accessory to display for a `MapFeature`

[`func mapFeatureSelectionContent(content: (MapFeature) -> some MapContent) -> some View`](/documentation/SwiftUI/View/mapFeatureSelectionContent(content:))

Specifies a custom presentation for the currently selected feature.

[`func mapControls(() -> some View) -> some View`](/documentation/SwiftUI/View/mapControls(_:))

Configures all `Map` views in the associated environment to have
standard size and position controls

[`func mapControlVisibility(Visibility) -> some View`](/documentation/SwiftUI/View/mapControlVisibility(_:))

Configures all Map controls in the environment to have the specified
visibility

[`func mapCameraKeyframeAnimator(trigger: some Equatable, keyframes: (MapCamera) -> some Keyframes<MapCamera>) -> some View`](/documentation/SwiftUI/View/mapCameraKeyframeAnimator(trigger:keyframes:))

Uses the given keyframes to animate the camera of a `Map` when the
given trigger value changes.

[`func lookAroundViewer(isPresented: Binding<Bool>, scene: Binding<MKLookAroundScene?>, allowsNavigation: Bool, showsRoadLabels: Bool, pointsOfInterest: PointOfInterestCategories, onDismiss: (() -> Void)?) -> some View`](/documentation/SwiftUI/View/lookAroundViewer(isPresented:scene:allowsNavigation:showsRoadLabels:pointsOfInterest:onDismiss:))

[`func lookAroundViewer(isPresented: Binding<Bool>, initialScene: MKLookAroundScene?, allowsNavigation: Bool, showsRoadLabels: Bool, pointsOfInterest: PointOfInterestCategories, onDismiss: (() -> Void)?) -> some View`](/documentation/SwiftUI/View/lookAroundViewer(isPresented:initialScene:allowsNavigation:showsRoadLabels:pointsOfInterest:onDismiss:))

[`func onMapCameraChange(frequency:_:)`](/documentation/SwiftUI/View/onMapCameraChange(frequency:_:))

Performs an action when Map camera framing changes

[`func mapItemDetailPopover(isPresented: Binding<Bool>, item: MKMapItem?, displaysMap: Bool, attachmentAnchor: PopoverAttachmentAnchor) -> some View`](/documentation/SwiftUI/View/mapItemDetailPopover(isPresented:item:displaysMap:attachmentAnchor:))

Presents a map item detail popover.

[`func mapItemDetailPopover(isPresented: Binding<Bool>, item: MKMapItem?, displaysMap: Bool, attachmentAnchor: PopoverAttachmentAnchor, arrowEdge: Edge) -> some View`](/documentation/SwiftUI/View/mapItemDetailPopover(isPresented:item:displaysMap:attachmentAnchor:arrowEdge:))

Presents a map item detail popover.

[`func mapItemDetailPopover(item: Binding<MKMapItem?>, displaysMap: Bool, attachmentAnchor: PopoverAttachmentAnchor) -> some View`](/documentation/SwiftUI/View/mapItemDetailPopover(item:displaysMap:attachmentAnchor:))

Presents a map item detail popover.

[`func mapItemDetailPopover(item: Binding<MKMapItem?>, displaysMap: Bool, attachmentAnchor: PopoverAttachmentAnchor, arrowEdge: Edge) -> some View`](/documentation/SwiftUI/View/mapItemDetailPopover(item:displaysMap:attachmentAnchor:arrowEdge:))

Presents a map item detail popover.

[`func mapItemDetailSheet(isPresented: Binding<Bool>, item: MKMapItem?, displaysMap: Bool) -> some View`](/documentation/SwiftUI/View/mapItemDetailSheet(isPresented:item:displaysMap:))

Presents a map item detail sheet.

[`func mapItemDetailSheet(item: Binding<MKMapItem?>, displaysMap: Bool) -> some View`](/documentation/SwiftUI/View/mapItemDetailSheet(item:displaysMap:))

Presents a map item detail sheet.

### Displaying media

  <doc://com.apple.documentation/documentation/HomeKit/CameraView>

  <doc://com.apple.documentation/documentation/WatchKit/NowPlayingView>

  <doc://com.apple.documentation/documentation/AVKit/VideoPlayer>

[`func continuityDevicePicker(isPresented: Binding<Bool>, onDidConnect: ((AVContinuityDevice?) -> Void)?) -> some View`](/documentation/SwiftUI/View/continuityDevicePicker(isPresented:onDidConnect:))

A `continuityDevicePicker` should be used to discover and connect
nearby continuity device through a button interface or other form of activation.
On tvOS, this presents a fullscreen continuity device picker experience when selected.
The modal view covers as much the screen of `self` as possible when a given condition is true.

[`func cameraAnchor(isActive: Bool) -> some View`](/documentation/SwiftUI/View/cameraAnchor(isActive:))

Specifies the view that should act as the virtual camera for Apple Vision Pro
2D Persona stream.

[`func foveatedStreamingPauseSheet(session: Binding<FoveatedStreamingSession?>) -> some View`](/documentation/SwiftUI/View/foveatedStreamingPauseSheet(session:))

Tells the system to present a sheet with controls for resuming or ending the foveated streaming session when it pauses.

### Supporting Group Activities

[`func groupActivityAssociation(GroupActivityAssociationKind?) -> some View`](/documentation/SwiftUI/View/groupActivityAssociation(_:))

Specifies how a view should be associated with the current SharePlay
group activity.

### Selecting photos

  <doc://com.apple.documentation/documentation/PhotosUI/PhotosPicker>

[`func photosPicker(isPresented: Binding<Bool>, selection: Binding<PhotosPickerItem?>, matching: PHPickerFilter?, preferredItemEncoding: PhotosPickerItem.EncodingDisambiguationPolicy) -> some View`](/documentation/SwiftUI/View/photosPicker(isPresented:selection:matching:preferredItemEncoding:))

Presents a Photos picker that selects a `PhotosPickerItem`.

[`func photosPicker(isPresented: Binding<Bool>, selection: Binding<PhotosPickerItem?>, matching: PHPickerFilter?, preferredItemEncoding: PhotosPickerItem.EncodingDisambiguationPolicy, photoLibrary: PHPhotoLibrary) -> some View`](/documentation/SwiftUI/View/photosPicker(isPresented:selection:matching:preferredItemEncoding:photoLibrary:))

Presents a Photos picker that selects a `PhotosPickerItem` from a given photo library.

[`func photosPicker(isPresented: Binding<Bool>, selection: Binding<[PhotosPickerItem]>, maxSelectionCount: Int?, selectionBehavior: PhotosPickerSelectionBehavior, matching: PHPickerFilter?, preferredItemEncoding: PhotosPickerItem.EncodingDisambiguationPolicy) -> some View`](/documentation/SwiftUI/View/photosPicker(isPresented:selection:maxSelectionCount:selectionBehavior:matching:preferredItemEncoding:))

Presents a Photos picker that selects a collection of `PhotosPickerItem`.

[`func photosPicker(isPresented: Binding<Bool>, selection: Binding<[PhotosPickerItem]>, maxSelectionCount: Int?, selectionBehavior: PhotosPickerSelectionBehavior, matching: PHPickerFilter?, preferredItemEncoding: PhotosPickerItem.EncodingDisambiguationPolicy, photoLibrary: PHPhotoLibrary) -> some View`](/documentation/SwiftUI/View/photosPicker(isPresented:selection:maxSelectionCount:selectionBehavior:matching:preferredItemEncoding:photoLibrary:))

Presents a Photos picker that selects a collection of `PhotosPickerItem` from a given photo library.

[`func photosPickerAccessoryVisibility(Visibility, edges: Edge.Set) -> some View`](/documentation/SwiftUI/View/photosPickerAccessoryVisibility(_:edges:))

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

[`func photosPickerDisabledCapabilities(PHPickerCapabilities) -> some View`](/documentation/SwiftUI/View/photosPickerDisabledCapabilities(_:))

Disables capabilities of the Photos picker.

[`func photosPickerSearchText(_:)`](/documentation/SwiftUI/View/photosPickerSearchText(_:))

Sets search text of the Photos picker.

[`func photosPickerStyle(PhotosPickerStyle) -> some View`](/documentation/SwiftUI/View/photosPickerStyle(_:))

Sets the mode of the Photos picker.

[`func photosPickerMetadataOptions(PHPickerMetadataOptions) -> some View`](/documentation/SwiftUI/View/photosPickerMetadataOptions(_:))

Sets metadata options for the Photos picker.

[`func photosSharedAlbumCreationSheet(isPresented: Binding<Bool>, defaultTitle: String?, defaultSharingPolicy: PHSharedAlbumCreationSharingPolicy?, photoLibrary: PHPhotoLibrary, onCompletion: ((PHSharedAlbumCreationResult?) -> Void)?) -> some View`](/documentation/SwiftUI/View/photosSharedAlbumCreationSheet(isPresented:defaultTitle:defaultSharingPolicy:photoLibrary:onCompletion:))

Presents a view for allowing the user to create a new shared album.

[`func photosSharedAlbumCustomizationSheet(isPresented: Binding<Bool>, albumIdentifier: String?, photoLibrary: PHPhotoLibrary, onCompletion: (((any Error)?) -> Void)?) -> some View`](/documentation/SwiftUI/View/photosSharedAlbumCustomizationSheet(isPresented:albumIdentifier:photoLibrary:onCompletion:))

Presents a view for allowing the user to customize a specified shared album.

[`func photosSharedAlbumPostingSheet(isPresented:items:defaultAlbumIdentifier:photoLibrary:completion:)`](/documentation/SwiftUI/View/photosSharedAlbumPostingSheet(isPresented:items:defaultAlbumIdentifier:photoLibrary:completion:))

Presents an “Add to Shared Album” sheet that allows the user to post the given items to a shared album.

[`func photosReferenceImageViewer(asset: Binding<PHAsset?>, onProcessingCompletion: ((Result<PHAsset, any Error>) -> Void)?) -> some View`](/documentation/SwiftUI/View/photosReferenceImageViewer(asset:onProcessingCompletion:))

Presents an image viewer for an asset in a photo library that contains Apple Reference Image data when `isPresented` is set to true.

[`func photosReferenceImageViewer(fileURL: Binding<URL?>, onProcessingCompletion: ((Result<URL, any Error>) -> Void)?) -> some View`](/documentation/SwiftUI/View/photosReferenceImageViewer(fileURL:onProcessingCompletion:))

Presents an image viewer for a given image file containing Apple Reference Image data when `fileURL` is set.

[`func photosReferenceImageViewer(pickerItem: Binding<PhotosPickerItem?>, onProcessingCompletion: ((Result<PHAsset, any Error>) -> Void)?) -> some View`](/documentation/SwiftUI/View/photosReferenceImageViewer(pickerItem:onProcessingCompletion:))

Presents an image viewer for an image containing Apple Reference Image data selected from the Photos picker when `isPresented` is set to true.

[`func photosReferenceImageViewer(pickerResult: Binding<PHPickerResult?>, onProcessingCompletion: ((Result<PHAsset, any Error>) -> Void)?) -> some View`](/documentation/SwiftUI/View/photosReferenceImageViewer(pickerResult:onProcessingCompletion:))

Presents an image viewer for the resulting image containing Apple Reference Image data from `PHPickerViewController` when `isPresented` is set to true.

### Generating images

[`func imagePlaygroundGenerationStyle(ImagePlaygroundStyle, in: [ImagePlaygroundStyle]) -> some View`](/documentation/SwiftUI/View/imagePlaygroundGenerationStyle(_:in:))

Sets the selected and allowed styles to use when displaying the image
generation sheet.

[`func imagePlaygroundOptions(ImagePlaygroundOptions) -> some View`](/documentation/SwiftUI/View/imagePlaygroundOptions(_:))

Sets the options to use when generating an image.

[`func imagePlaygroundSheet(isPresented: Binding<Bool>, concept: String, sourceImage: Image?, onCompletion: (URL) -> Void, onCancellation: (() -> Void)?) -> some View`](/documentation/SwiftUI/View/imagePlaygroundSheet(isPresented:concept:sourceImage:onCompletion:onCancellation:))

Presents the system sheet to create an image using the specified string and
optional starting image.

[`func imagePlaygroundSheet(isPresented: Binding<Bool>, concept: String, sourceImage: Image?, onCompletion: (URL) -> Void, onAdaptiveImageGlyphCreation: (NSAdaptiveImageGlyph) -> Void, onCancellation: (() -> Void)?) -> some View`](/documentation/SwiftUI/View/imagePlaygroundSheet(isPresented:concept:sourceImage:onCompletion:onAdaptiveImageGlyphCreation:onCancellation:))

Presents the system sheet to create images from the
specified input.

[`func imagePlaygroundSheet(isPresented: Binding<Bool>, concept: String, sourceImageURL: URL, onCompletion: (URL) -> Void, onCancellation: (() -> Void)?) -> some View`](/documentation/SwiftUI/View/imagePlaygroundSheet(isPresented:concept:sourceImageURL:onCompletion:onCancellation:))

Presents the system sheet to create an image using the specified string and
image URL.

[`func imagePlaygroundSheet(isPresented: Binding<Bool>, concept: String, sourceImageURL: URL, onCompletion: (URL) -> Void, onAdaptiveImageGlyphCreation: (NSAdaptiveImageGlyph) -> Void, onCancellation: (() -> Void)?) -> some View`](/documentation/SwiftUI/View/imagePlaygroundSheet(isPresented:concept:sourceImageURL:onCompletion:onAdaptiveImageGlyphCreation:onCancellation:))

Presents the system sheet to create an image or Genmoji using the specified
string and image URL.

[`func imagePlaygroundSheet(isPresented: Binding<Bool>, concepts: [ImagePlaygroundConcept], sourceImage: Image?, onCompletion: (URL) -> Void, onCancellation: (() -> Void)?) -> some View`](/documentation/SwiftUI/View/imagePlaygroundSheet(isPresented:concepts:sourceImage:onCompletion:onCancellation:))

Presents the system sheet to create an image using one or more concepts
and an optional starting image.

[`func imagePlaygroundSheet(isPresented: Binding<Bool>, concepts: [ImagePlaygroundConcept], sourceImage: Image?, onCompletion: (URL) -> Void, onAdaptiveImageGlyphCreation: (NSAdaptiveImageGlyph) -> Void, onCancellation: (() -> Void)?) -> some View`](/documentation/SwiftUI/View/imagePlaygroundSheet(isPresented:concepts:sourceImage:onCompletion:onAdaptiveImageGlyphCreation:onCancellation:))

Presents the system sheet to create an image or Genmoji using one or more
concepts and an optional starting image.

[`func imagePlaygroundSheet(isPresented: Binding<Bool>, concepts: [ImagePlaygroundConcept], sourceImageURL: URL, onCompletion: (URL) -> Void, onCancellation: (() -> Void)?) -> some View`](/documentation/SwiftUI/View/imagePlaygroundSheet(isPresented:concepts:sourceImageURL:onCompletion:onCancellation:))

Presents the system sheet to create an image using one or more concepts and an
image URL.

[`func imagePlaygroundSheet(isPresented: Binding<Bool>, concepts: [ImagePlaygroundConcept], sourceImageURL: URL, onCompletion: (URL) -> Void, onAdaptiveImageGlyphCreation: (NSAdaptiveImageGlyph) -> Void, onCancellation: (() -> Void)?) -> some View`](/documentation/SwiftUI/View/imagePlaygroundSheet(isPresented:concepts:sourceImageURL:onCompletion:onAdaptiveImageGlyphCreation:onCancellation:))

Presents the system sheet to create an image or Genmoji using one or more
concepts and an image URL.

### Previewing content

[`func quickLookPreview(Binding<URL?>) -> some View`](/documentation/SwiftUI/View/quickLookPreview(_:))

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

[`func quickLookPreview<Items>(Binding<Items.Element?>, in: Items) -> some View`](/documentation/SwiftUI/View/quickLookPreview(_:in:))

Presents a Quick Look preview of the URLs you provide.

### Interacting with networked devices

  <doc://com.apple.documentation/documentation/DeviceDiscoveryUI/DevicePicker>

[`var devicePickerSupports: DevicePickerSupportedAction`](/documentation/SwiftUI/EnvironmentValues/devicePickerSupports)

Checks for support to present a DevicePicker.

### Configuring a Live Activity

[`func activitySystemActionForegroundColor(Color?) -> some View`](/documentation/SwiftUI/View/activitySystemActionForegroundColor(_:))

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

[`func activityBackgroundTint(Color?) -> some View`](/documentation/SwiftUI/View/activityBackgroundTint(_:))

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

[`var isActivityFullscreen: Bool`](/documentation/SwiftUI/EnvironmentValues/isActivityFullscreen)

A Boolean value that indicates whether the Live Activity appears in a
full-screen presentation.

[`var activityFamily: ActivityFamily`](/documentation/SwiftUI/EnvironmentValues/activityFamily)

The size family of the current Live Activity.

### Interacting with the App Store and Apple Music

[`func appStoreOverlay(isPresented: Binding<Bool>, configuration: () -> SKOverlay.Configuration) -> some View`](/documentation/SwiftUI/View/appStoreOverlay(isPresented:configuration:))

Presents a StoreKit overlay when a given condition is true.

[`func manageSubscriptionsSheet(isPresented: Binding<Bool>) -> some View`](/documentation/SwiftUI/View/manageSubscriptionsSheet(isPresented:))

[`func refundRequestSheet(for: Transaction.ID, isPresented: Binding<Bool>, onDismiss: ((Result<Transaction.RefundRequestStatus, Transaction.RefundRequestError>) -> ())?) -> some View`](/documentation/SwiftUI/View/refundRequestSheet(for:isPresented:onDismiss:))

Display the refund request sheet for the given transaction.

[`func offerCodeRedemption(options: Set<RedeemOption>, isPresented: Binding<Bool>, onCompletion: (Result<VerificationResult<Transaction>, any Error>) -> Void) -> some View`](/documentation/SwiftUI/View/offerCodeRedemption(options:isPresented:onCompletion:))

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

[`func musicPicker(isPresented:title:selection:)`](/documentation/SwiftUI/View/musicPicker(isPresented:title:selection:))

Presents a music picker to select items from the Apple Music catalog and the user’s music library.

[`func musicSubscriptionOffer(isPresented: Binding<Bool>, options: MusicSubscriptionOffer.Options, onLoadCompletion: ((any Error)?) -> Void) -> some View`](/documentation/SwiftUI/View/musicSubscriptionOffer(isPresented:options:onLoadCompletion:))

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

[`func currentEntitlementTask(for: String, priority: TaskPriority, action: (EntitlementTaskState<VerificationResult<Transaction>?>) async -> ()) -> some View`](/documentation/SwiftUI/View/currentEntitlementTask(for:priority:action:))

Declares the view as dependent on the entitlement of an In-App Purchase product, and returns a
modified view.

[`func inAppPurchaseOptions(((Product) async -> Set<Product.PurchaseOption>)?) -> some View`](/documentation/SwiftUI/View/inAppPurchaseOptions(_:))

Add a function to call before initiating a purchase from StoreKit view within this view, providing a set
of options for the purchase.

[`func manageSubscriptionsSheet(isPresented: Binding<Bool>, subscriptionGroupID: String) -> some View`](/documentation/SwiftUI/View/manageSubscriptionsSheet(isPresented:subscriptionGroupID:))

[`func onInAppPurchaseCompletion(perform: ((Product, Result<Product.PurchaseResult, any Error>) async -> ())?) -> some View`](/documentation/SwiftUI/View/onInAppPurchaseCompletion(perform:))

Add an action to perform when a purchase initiated from a StoreKit view within this view completes.

[`func onInAppPurchaseStart(perform: ((Product) async -> ())?) -> some View`](/documentation/SwiftUI/View/onInAppPurchaseStart(perform:))

Add an action to perform when a user triggers the purchase button on a StoreKit view within this
view.

[`func productIconBorder() -> some View`](/documentation/SwiftUI/View/productIconBorder())

Adds a standard border to an in-app purchase product’s icon .

[`func productViewStyle(some ProductViewStyle) -> some View`](/documentation/SwiftUI/View/productViewStyle(_:))

Sets the style for In-App Purchase product views within a view.

[`func productDescription(Visibility) -> some View`](/documentation/SwiftUI/View/productDescription(_:))

Configure the visibility of labels displaying an in-app purchase product description within the view.

[`func storeButton(Visibility, for: StoreButtonKind...) -> some View`](/documentation/SwiftUI/View/storeButton(_:for:))

Specifies the visibility of auxiliary buttons that store view and subscription store view instances may use.

[`func storeProductTask(for: Product.ID, priority: TaskPriority, action: (Product.TaskState) async -> ()) -> some View`](/documentation/SwiftUI/View/storeProductTask(for:priority:action:))

Declares the view as dependent on an In-App Purchase product and returns a modified view.

[`func storeProductsTask(for: some Collection<String> & Equatable & Sendable, priority: TaskPriority, action: (Product.CollectionTaskState) async -> ()) -> some View`](/documentation/SwiftUI/View/storeProductsTask(for:priority:action:))

Declares the view as dependent on a collection of In-App Purchase products and returns a
modified view.

[`func subscriptionStatusTask(for: String, priority: TaskPriority, action: (EntitlementTaskState<[Product.SubscriptionInfo.Status]>) async -> ()) -> some View`](/documentation/SwiftUI/View/subscriptionStatusTask(for:priority:action:))

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

[`func subscriptionStoreButtonLabel(SubscriptionStoreButtonLabel) -> some View`](/documentation/SwiftUI/View/subscriptionStoreButtonLabel(_:))

Configures subscription store view instances within a view to use the provided button label.

[`func subscriptionStoreControlIcon(icon: (Product, Product.SubscriptionInfo) -> some View) -> some View`](/documentation/SwiftUI/View/subscriptionStoreControlIcon(icon:))

Sets a view to use to decorate individual subscription options within a subscription store view.

[`func subscriptionStoreControlStyle(some SubscriptionStoreControlStyle) -> some View`](/documentation/SwiftUI/View/subscriptionStoreControlStyle(_:))

Sets the control style for subscription store views within a view.

[`func subscriptionStoreControlStyle<S>(S, placement: S.Placement) -> some View`](/documentation/SwiftUI/View/subscriptionStoreControlStyle(_:placement:))

Sets the control style and control placement for subscription store views within a view.

[`func subscriptionStoreOptionGroupStyle(some SubscriptionOptionGroupStyle) -> some View`](/documentation/SwiftUI/View/subscriptionStoreOptionGroupStyle(_:))

Sets the style subscription store views within this view use to display groups of subscription options.

[`func subscriptionStorePickerItemBackground(some ShapeStyle) -> some View`](/documentation/SwiftUI/View/subscriptionStorePickerItemBackground(_:))

Sets the background style for picker items of the subscription store view instances within a view.

[`func subscriptionStorePickerItemBackground(some ShapeStyle, in: some Shape) -> some View`](/documentation/SwiftUI/View/subscriptionStorePickerItemBackground(_:in:))

Sets the background shape and style for subscription store view picker items within a view.

[`func subscriptionStorePolicyDestination(for: SubscriptionStorePolicyKind, destination: () -> some View) -> some View`](/documentation/SwiftUI/View/subscriptionStorePolicyDestination(for:destination:))

Configures a view as the destination for a policy button action in subscription store views.

[`func subscriptionStorePolicyDestination(url: URL, for: SubscriptionStorePolicyKind) -> some View`](/documentation/SwiftUI/View/subscriptionStorePolicyDestination(url:for:))

Configures a URL as the destination for a policy button action in subscription store views.

[`func subscriptionStorePolicyForegroundStyle(some ShapeStyle) -> some View`](/documentation/SwiftUI/View/subscriptionStorePolicyForegroundStyle(_:))

Sets the style for the terms of service and privacy policy buttons within a subscription store view.

[`func subscriptionStorePolicyForegroundStyle(some ShapeStyle, some ShapeStyle) -> some View`](/documentation/SwiftUI/View/subscriptionStorePolicyForegroundStyle(_:_:))

Sets the primary and secondary style for the terms of service and privacy policy buttons within
a subscription store view.

[`func subscriptionStoreSignInAction((() -> ())?) -> some View`](/documentation/SwiftUI/View/subscriptionStoreSignInAction(_:))

Adds an action to perform when a person uses the sign-in button on a subscription store view within a view.

[`func subscriptionStoreControlBackground(_:)`](/documentation/SwiftUI/View/subscriptionStoreControlBackground(_:))

Set a standard effect to use for the background of subscription store view controls within the view.

[`func subscriptionPromotionalOffer(offer: (Product, Product.SubscriptionInfo) -> Product.SubscriptionOffer?, compactJWS: (Product, Product.SubscriptionInfo, Product.SubscriptionOffer) async throws -> String) -> some View`](/documentation/SwiftUI/View/subscriptionPromotionalOffer(offer:compactJWS:))

Selects a promotional offer to apply to a purchase a customer makes from a subscription store view.

[`func subscriptionIntroductoryOffer(applyOffer: (Product, Product.SubscriptionInfo) -> Bool, compactJWS: (Product, Product.SubscriptionInfo) async throws -> String) -> some View`](/documentation/SwiftUI/View/subscriptionIntroductoryOffer(applyOffer:compactJWS:))

Selects the introductory offer eligibility preference to apply to a purchase a customer makes from a subscription store view.

[`func subscriptionOfferViewButtonVisibility(Visibility, for: SubscriptionOfferViewButtonKind...) -> some View`](/documentation/SwiftUI/View/subscriptionOfferViewButtonVisibility(_:for:))

[`func subscriptionOfferViewDetailAction((() -> ())?) -> some View`](/documentation/SwiftUI/View/subscriptionOfferViewDetailAction(_:))

[`func subscriptionOfferViewStyle(some SubscriptionOfferViewStyle) -> some View`](/documentation/SwiftUI/View/subscriptionOfferViewStyle(_:))

[`func preferredSubscriptionOffer((Product, Product.SubscriptionInfo, [Product.SubscriptionOffer]) -> Product.SubscriptionOffer?) -> some View`](/documentation/SwiftUI/View/preferredSubscriptionOffer(_:))

Selects a subscription offer to apply to a purchase that a customer makes from a subscription
store view, a store view, or a product view.

[`func preferredSubscriptionPricingTerms((Product, SubscriptionInfo) -> SubscriptionInfo.PricingTerms?) -> some View`](/documentation/SwiftUI/View/preferredSubscriptionPricingTerms(_:))

### Accessing health data

[`func healthDataAccessRequest(store: HKHealthStore, objectType: HKObjectType, predicate: NSPredicate?, trigger: some Equatable, completion: (Result<Bool, any Error>) -> Void) -> some View`](/documentation/SwiftUI/View/healthDataAccessRequest(store:objectType:predicate:trigger:completion:))

Asynchronously requests permission to read a data type that requires per-object authorization (such as vision prescriptions).

[`func healthDataAccessRequest(store: HKHealthStore, readTypes: Set<HKObjectType>, trigger: some Equatable, completion: (Result<Bool, any Error>) -> Void) -> some View`](/documentation/SwiftUI/View/healthDataAccessRequest(store:readTypes:trigger:completion:))

Requests permission to read the specified HealthKit data types.

[`func healthDataAccessRequest(store: HKHealthStore, shareTypes: Set<HKSampleType>, readTypes: Set<HKObjectType>?, trigger: some Equatable, completion: (Result<Bool, any Error>) -> Void) -> some View`](/documentation/SwiftUI/View/healthDataAccessRequest(store:shareTypes:readTypes:trigger:completion:))

Requests permission to save and read the specified HealthKit data types.

[`func workoutPreview(WorkoutPlan, isPresented: Binding<Bool>) -> some View`](/documentation/SwiftUI/View/workoutPreview(_:isPresented:))

Presents a preview of the workout contents as a modal sheet

### Providing tips

[`func popoverTip((any Tip)?, arrowEdge: Edge?, action: (Tips.Action) -> Void) -> some View`](/documentation/SwiftUI/View/popoverTip(_:arrowEdge:action:))

Presents a popover tip on the modified view.

[`func popoverTip((any Tip)?, isPresented: Binding<Bool>?, attachmentAnchor: PopoverAttachmentAnchor, arrowEdge: Edge?, action: (Tips.Action) -> Void) -> some View`](/documentation/SwiftUI/View/popoverTip(_:isPresented:attachmentAnchor:arrowEdge:action:))

Presents a popover tip on the modified view.

[`func popoverTip((any Tip)?, isPresented: Binding<Bool>?, attachmentAnchor: PopoverAttachmentAnchor, arrowEdges: Edge.Set, action: (Tips.Action) -> Void) -> some View`](/documentation/SwiftUI/View/popoverTip(_:isPresented:attachmentAnchor:arrowEdges:action:))

Presents a popover tip on the modified view.

[`func tipAnchor<AnchorID>(AnchorID) -> some View`](/documentation/SwiftUI/View/tipAnchor(_:))

Sets a value for the specified tip anchor to be used to anchor a tip view to the `.bounds` of the view.

[`func tipBackground<S>(S) -> some View`](/documentation/SwiftUI/View/tipBackground(_:))

Sets the tip’s view background to a style.

[`func tipBackgroundInteraction(PresentationBackgroundInteraction) -> some View`](/documentation/SwiftUI/View/tipBackgroundInteraction(_:))

Controls whether people can interact with the view behind a presented tip.

[`func tipCornerRadius(CGFloat, antialiased: Bool) -> some View`](/documentation/SwiftUI/View/tipCornerRadius(_:antialiased:))

Sets the corner radius for an inline tip view.

[`func tipImageSize(CGSize) -> some View`](/documentation/SwiftUI/View/tipImageSize(_:))

Sets the size for a tip’s image.

[`func tipViewStyle(some TipViewStyle) -> some View`](/documentation/SwiftUI/View/tipViewStyle(_:))

Sets the given style for TipView within the view hierarchy.

[`func tipImageStyle<S>(S) -> some View`](/documentation/SwiftUI/View/tipImageStyle(_:))

Sets the style for a tip’s image.

[`func tipImageStyle<S1, S2>(S1, S2) -> some View`](/documentation/SwiftUI/View/tipImageStyle(_:_:))

Sets the style for a tip’s image.

[`func tipImageStyle<S1, S2, S3>(S1, S2, S3) -> some View`](/documentation/SwiftUI/View/tipImageStyle(_:_:_:))

Sets the style for a tip’s image.

### Showing a translation

[`func translationPresentation(isPresented: Binding<Bool>, text: String, attachmentAnchor: PopoverAttachmentAnchor, arrowEdge: Edge, replacementAction: ((String) -> Void)?) -> some View`](/documentation/SwiftUI/View/translationPresentation(isPresented:text:attachmentAnchor:arrowEdge:replacementAction:))

Presents a translation popover when a given condition is true.

[`func translationTask(TranslationSession.Configuration?, action: (TranslationSession) async -> Void) -> some View`](/documentation/SwiftUI/View/translationTask(_:action:))

Adds a task to perform before this view appears or when the translation configuration changes.

[`func translationTask(source: Locale.Language?, target: Locale.Language?, action: (TranslationSession) async -> Void) -> some View`](/documentation/SwiftUI/View/translationTask(source:target:action:))

Adds a task to perform before this view appears or when the specified source or target
languages change.

[`func translationTask(source: Locale.Language?, target: Locale.Language?, preferredStrategy: TranslationSession.Strategy, action: (TranslationSession) async -> Void) -> some View`](/documentation/SwiftUI/View/translationTask(source:target:preferredStrategy:action:))

Adds a task to perform before this view appears or when the specified source or target
languages change.

### Presenting journaling suggestions

[`func journalingSuggestionsPicker(isPresented: Binding<Bool>, onCompletion: (JournalingSuggestion) async -> Void) -> some View`](/documentation/SwiftUI/View/journalingSuggestionsPicker(isPresented:onCompletion:))

Presents a visual picker interface that contains events and images that a person can select
to retrieve more information.

[`func journalingSuggestionsPicker(isPresented: Binding<Bool>, journalingSuggestionToken: JournalingSuggestionPresentationToken?, onCompletion: (JournalingSuggestion) async -> Void) -> some View`](/documentation/SwiftUI/View/journalingSuggestionsPicker(isPresented:journalingSuggestionToken:onCompletion:))

Presents a visual picker interface that contains events and images that a person can select
to retrieve more information.

### Managing contact access

[`func contactAccessButtonCaption(ContactAccessButton.Caption) -> some View`](/documentation/SwiftUI/View/contactAccessButtonCaption(_:))

[`func contactAccessButtonStyle(ContactAccessButton.Style) -> some View`](/documentation/SwiftUI/View/contactAccessButtonStyle(_:))

[`func contactAccessPicker(isPresented: Binding<Bool>, completionHandler: ([String]) -> Void) -> some View`](/documentation/SwiftUI/View/contactAccessPicker(isPresented:completionHandler:))

Modally present UI which allows the user to select which
contacts your app has access to.

### Syncing game saves

[`func gameSaveSyncingAlert(directory: Binding<GameSaveSyncedDirectory?>, finishedLoading: () -> Void) -> some View`](/documentation/SwiftUI/View/gameSaveSyncingAlert(directory:finishedLoading:))

Presents a modal view while the game synced directory loads.

### Handling game controller events

[`func handlesGameControllerEvents(matching: GCUIEventTypes) -> some View`](/documentation/SwiftUI/View/handlesGameControllerEvents(matching:))

Specifies the game controllers events which should be delivered through
the GameController framework when the view, or one of its descendants
has focus.

### Creating a tabletop game

[`func tabletopGame(TabletopGame, parent: Entity, automaticUpdate: Bool) -> some View`](/documentation/SwiftUI/View/tabletopGame(_:parent:automaticUpdate:))

Adds a tabletop game to a view.

[`func tabletopGame(TabletopGame, parent: Entity, automaticUpdate: Bool, interaction: (TabletopInteraction.Value) -> any TabletopInteraction.Delegate) -> some View`](/documentation/SwiftUI/View/tabletopGame(_:parent:automaticUpdate:interaction:))

Supplies a closure which returns a new interaction whenever needed.

### Configuring camera controls

[`var realityViewCameraControls: CameraControls`](/documentation/SwiftUI/EnvironmentValues/realityViewCameraControls)

The camera controls for the reality view.

[`func realityViewCameraControls(CameraControls) -> some View`](/documentation/SwiftUI/View/realityViewCameraControls(_:))

Adds gestures that control the position and direction of a virtual camera.

[`func realityViewLayoutBehavior(RealityViewLayoutOption) -> some View`](/documentation/SwiftUI/View/realityViewLayoutBehavior(_:))

A view modifier that controls the frame sizing and content alignment behavior for `RealityView`

### Interacting with transactions

[`func transactionPicker(isPresented: Binding<Bool>, selection: Binding<[Transaction]>) -> some View`](/documentation/SwiftUI/View/transactionPicker(isPresented:selection:))

Presents a picker that selects a collection of transactions.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)