---
title: Presentation modifiers
framework: swiftui
role: collectionGroup
role_heading: API Collection
path: swiftui/view-presentation
---

# Presentation modifiers

Define additional views for the view to present under specified conditions.

## Overview

Overview Use presentation modifiers to show different kinds of modal presentations, like alerts, popovers, sheets, and confirmation dialogs. Because SwiftUI is a declarative framework, you don’t call a method at the moment you want to present the modal. Rather, you define how the presentation looks and the condition under which SwiftUI should present it. SwiftUI detects when the condition changes and makes the presentation for you. Because you provide a Binding to the condition that initiates the presentation, SwiftUI can reset the underlying value when the user dismisses the presentation. For more information about how to use these modifiers, see Modal presentations.

## Topics

### Alerts

- [alert(_:isPresented:actions:)](swiftui/view/alert(_:ispresented:actions:).md)
- [alert(_:isPresented:presenting:actions:)](swiftui/view/alert(_:ispresented:presenting:actions:).md)
- [alert(_:item:actions:)](swiftui/view/alert(_:item:actions:).md)
- [alert(error:actions:)](swiftui/view/alert(error:actions:).md)
- [alert(isPresented:error:actions:)](swiftui/view/alert(ispresented:error:actions:).md)

### Alerts with a message

- [alert(_:isPresented:actions:message:)](swiftui/view/alert(_:ispresented:actions:message:).md)
- [alert(_:isPresented:presenting:actions:message:)](swiftui/view/alert(_:ispresented:presenting:actions:message:).md)
- [alert(_:item:actions:message:)](swiftui/view/alert(_:item:actions:message:).md)
- [alert(error:actions:message:)](swiftui/view/alert(error:actions:message:).md)
- [alert(isPresented:error:actions:message:)](swiftui/view/alert(ispresented:error:actions:message:).md)

### Confirmation dialogs

- [confirmationDialog(_:isPresented:titleVisibility:actions:)](swiftui/view/confirmationdialog(_:ispresented:titlevisibility:actions:).md)
- [confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)](swiftui/view/confirmationdialog(_:ispresented:titlevisibility:presenting:actions:).md)
- [confirmationDialog(_:item:titleVisibility:actions:)](swiftui/view/confirmationdialog(_:item:titlevisibility:actions:).md)
- [dismissalConfirmationDialog(_:shouldPresent:actions:)](swiftui/view/dismissalconfirmationdialog(_:shouldpresent:actions:).md)

### Confirmation dialogs with a message

- [confirmationDialog(_:isPresented:titleVisibility:actions:message:)](swiftui/view/confirmationdialog(_:ispresented:titlevisibility:actions:message:).md)
- [confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)](swiftui/view/confirmationdialog(_:ispresented:titlevisibility:presenting:actions:message:).md)
- [confirmationDialog(_:item:titleVisibility:actions:message:)](swiftui/view/confirmationdialog(_:item:titlevisibility:actions:message:).md)
- [dismissalConfirmationDialog(_:shouldPresent:actions:message:)](swiftui/view/dismissalconfirmationdialog(_:shouldpresent:actions:message:).md)

### Dialog configuration

- [dialogIcon(_:)](swiftui/view/dialogicon(_:).md)
- [dialogSeverity(_:)](swiftui/view/dialogseverity(_:).md)
- [dialogSuppressionToggle(isSuppressed:)](swiftui/view/dialogsuppressiontoggle(issuppressed:).md)
- [dialogSuppressionToggle(_:isSuppressed:)](swiftui/view/dialogsuppressiontoggle(_:issuppressed:).md)
- [dialogPreventsAppTermination(_:)](swiftui/view/dialogpreventsapptermination(_:).md)

### Sheets

- [sheet(isPresented:onDismiss:content:)](swiftui/view/sheet(ispresented:ondismiss:content:).md)
- [sheet(item:onDismiss:content:)](swiftui/view/sheet(item:ondismiss:content:).md)
- [fullScreenCover(isPresented:onDismiss:content:)](swiftui/view/fullscreencover(ispresented:ondismiss:content:).md)
- [fullScreenCover(item:onDismiss:content:)](swiftui/view/fullscreencover(item:ondismiss:content:).md)

### Popovers

- [popover(item:attachmentAnchor:arrowEdge:content:)](swiftui/view/popover(item:attachmentanchor:arrowedge:content:).md)
- [popover(isPresented:attachmentAnchor:arrowEdge:content:)](swiftui/view/popover(ispresented:attachmentanchor:arrowedge:content:).md)

### Sheet and popover configuration

- [interactiveDismissDisabled(_:)](swiftui/view/interactivedismissdisabled(_:).md)
- [presentationDetents(_:)](swiftui/view/presentationdetents(_:).md)
- [presentationDetents(_:selection:)](swiftui/view/presentationdetents(_:selection:).md)
- [presentationDragIndicator(_:)](swiftui/view/presentationdragindicator(_:).md)
- [presentationBackground(_:)](swiftui/view/presentationbackground(_:).md)
- [presentationBackground(alignment:content:)](swiftui/view/presentationbackground(alignment:content:).md)
- [presentationBackgroundInteraction(_:)](swiftui/view/presentationbackgroundinteraction(_:).md)
- [presentationCompactAdaptation(horizontal:vertical:)](swiftui/view/presentationcompactadaptation(horizontal:vertical:).md)
- [presentationCompactAdaptation(_:)](swiftui/view/presentationcompactadaptation(_:).md)
- [presentationContentInteraction(_:)](swiftui/view/presentationcontentinteraction(_:).md)
- [presentationCornerRadius(_:)](swiftui/view/presentationcornerradius(_:).md)
- [presentationSizing(_:)](swiftui/view/presentationsizing(_:).md)
- [presentationBreakthroughEffect(_:)](swiftui/view/presentationbreakthrougheffect(_:).md)
- [presentationPreventsAppTermination(_:)](swiftui/view/presentationpreventsapptermination(_:).md)

### File exporter

- [fileExporter(isPresented:document:contentType:defaultFilename:onCompletion:)](swiftui/view/fileexporter(ispresented:document:contenttype:defaultfilename:oncompletion:).md)
- [fileExporter(isPresented:documents:contentType:onCompletion:)](swiftui/view/fileexporter(ispresented:documents:contenttype:oncompletion:).md)
- [fileExporter(isPresented:document:contentType:defaultFilename:onCompletion:onCancellation:)](swiftui/view/fileexporter(ispresented:document:contenttype:defaultfilename:oncompletion:oncancellation:).md)
- [fileExporter(isPresented:document:contentTypes:defaultFilename:onCompletion:onCancellation:)](swiftui/view/fileexporter(ispresented:document:contenttypes:defaultfilename:oncompletion:oncancellation:).md)
- [fileExporter(isPresented:documents:contentTypes:onCompletion:onCancellation:)](swiftui/view/fileexporter(ispresented:documents:contenttypes:oncompletion:oncancellation:).md)
- [fileExporter(isPresented:item:contentTypes:defaultFilename:onCompletion:onCancellation:)](swiftui/view/fileexporter(ispresented:item:contenttypes:defaultfilename:oncompletion:oncancellation:).md)
- [fileExporter(isPresented:items:contentTypes:onCompletion:onCancellation:)](swiftui/view/fileexporter(ispresented:items:contenttypes:oncompletion:oncancellation:).md)
- [fileExporterFilenameLabel(_:)](swiftui/view/fileexporterfilenamelabel(_:).md)

### File importer

- [fileImporter(isPresented:allowedContentTypes:allowsMultipleSelection:onCompletion:)](swiftui/view/fileimporter(ispresented:allowedcontenttypes:allowsmultipleselection:oncompletion:).md)
- [fileImporter(isPresented:allowedContentTypes:onCompletion:)](swiftui/view/fileimporter(ispresented:allowedcontenttypes:oncompletion:).md)
- [fileImporter(isPresented:allowedContentTypes:allowsMultipleSelection:onCompletion:onCancellation:)](swiftui/view/fileimporter(ispresented:allowedcontenttypes:allowsmultipleselection:oncompletion:oncancellation:).md)

### File mover

- [fileMover(isPresented:file:onCompletion:)](swiftui/view/filemover(ispresented:file:oncompletion:).md)
- [fileMover(isPresented:files:onCompletion:)](swiftui/view/filemover(ispresented:files:oncompletion:).md)
- [fileMover(isPresented:file:onCompletion:onCancellation:)](swiftui/view/filemover(ispresented:file:oncompletion:oncancellation:).md)
- [fileMover(isPresented:files:onCompletion:onCancellation:)](swiftui/view/filemover(ispresented:files:oncompletion:oncancellation:).md)

### File dialog configuration

- [fileDialogBrowserOptions(_:)](swiftui/view/filedialogbrowseroptions(_:).md)
- [fileDialogConfirmationLabel(_:)](swiftui/view/filedialogconfirmationlabel(_:).md)
- [fileDialogCustomizationID(_:)](swiftui/view/filedialogcustomizationid(_:).md)
- [fileDialogDefaultDirectory(_:)](swiftui/view/filedialogdefaultdirectory(_:).md)
- [fileDialogImportsUnresolvedAliases(_:)](swiftui/view/filedialogimportsunresolvedaliases(_:).md)
- [fileDialogMessage(_:)](swiftui/view/filedialogmessage(_:).md)
- [fileDialogURLEnabled(_:)](swiftui/view/filedialogurlenabled(_:).md)

### Foveated streaming

- [foveatedStreamingPauseSheet(session:)](swiftui/view/foveatedstreamingpausesheet(session:).md)

### Document browser

- [documentBrowserContextMenu(_:)](swiftui/view/documentbrowsercontextmenu(_:).md)

### Inspectors

- [inspector(isPresented:content:)](swiftui/view/inspector(ispresented:content:).md)
- [inspectorColumnWidth(_:)](swiftui/view/inspectorcolumnwidth(_:).md)
- [inspectorColumnWidth(min:ideal:max:)](swiftui/view/inspectorcolumnwidth(min:ideal:max:).md)

### Quick look previews

- [quickLookPreview(_:)](swiftui/view/quicklookpreview(_:).md)
- [quickLookPreview(_:in:)](swiftui/view/quicklookpreview(_:in:).md)

### Family Sharing

- [familyActivityPicker(isPresented:selection:)](swiftui/view/familyactivitypicker(ispresented:selection:).md)
- [familyActivityPicker(headerText:footerText:isPresented:selection:)](swiftui/view/familyactivitypicker(headertext:footertext:ispresented:selection:).md)
- [familyActivityPicker(title:headerText:footerText:isPresented:selection:)](swiftui/view/familyactivitypicker(title:headertext:footertext:ispresented:selection:).md)

### Live Activities

- [activitySystemActionForegroundColor(_:)](swiftui/view/activitysystemactionforegroundcolor(_:).md)
- [activityBackgroundTint(_:)](swiftui/view/activitybackgroundtint(_:).md)

### Game saving

- [gameSaveSyncingAlert(directory:finishedLoading:)](swiftui/view/gamesavesyncingalert(directory:finishedloading:).md)

### Apple Music

- [musicSubscriptionOffer(isPresented:options:onLoadCompletion:)](swiftui/view/musicsubscriptionoffer(ispresented:options:onloadcompletion:).md)

### Contacts

- [contactAccessButtonCaption(_:)](swiftui/view/contactaccessbuttoncaption(_:).md)
- [contactAccessButtonStyle(_:)](swiftui/view/contactaccessbuttonstyle(_:).md)
- [contactAccessPicker(isPresented:completionHandler:)](swiftui/view/contactaccesspicker(ispresented:completionhandler:).md)

### StoreKit

- [appStoreOverlay(isPresented:configuration:)](swiftui/view/appstoreoverlay(ispresented:configuration:).md)
- [appStoreMerchandising(isPresented:kind:onDismiss:)](swiftui/view/appstoremerchandising(ispresented:kind:ondismiss:).md)
- [manageSubscriptionsSheet(isPresented:)](swiftui/view/managesubscriptionssheet(ispresented:).md)
- [refundRequestSheet(for:isPresented:onDismiss:)](swiftui/view/refundrequestsheet(for:ispresented:ondismiss:).md)
- [offerCodeRedemption(options:isPresented:onCompletion:)](swiftui/view/offercoderedemption(options:ispresented:oncompletion:).md)

### PhotoKit

- [photosPicker(isPresented:selection:matching:preferredItemEncoding:)](swiftui/view/photospicker(ispresented:selection:matching:preferreditemencoding:).md)
- [photosPicker(isPresented:selection:matching:preferredItemEncoding:photoLibrary:)](swiftui/view/photospicker(ispresented:selection:matching:preferreditemencoding:photolibrary:).md)
- [photosPicker(isPresented:selection:maxSelectionCount:selectionBehavior:matching:preferredItemEncoding:)](swiftui/view/photospicker(ispresented:selection:maxselectioncount:selectionbehavior:matching:preferreditemencoding:).md)
- [photosPicker(isPresented:selection:maxSelectionCount:selectionBehavior:matching:preferredItemEncoding:photoLibrary:)](swiftui/view/photospicker(ispresented:selection:maxselectioncount:selectionbehavior:matching:preferreditemencoding:photolibrary:).md)
- [photosPickerAccessoryVisibility(_:edges:)](swiftui/view/photospickeraccessoryvisibility(_:edges:).md)
- [photosPickerDisabledCapabilities(_:)](swiftui/view/photospickerdisabledcapabilities(_:).md)
- [photosPickerSearchText(_:)](swiftui/view/photospickersearchtext(_:).md)
- [photosPickerStyle(_:)](swiftui/view/photospickerstyle(_:).md)
- [photosSharedAlbumCreationSheet(isPresented:defaultTitle:defaultSharingPolicy:photoLibrary:onCompletion:)](swiftui/view/photossharedalbumcreationsheet(ispresented:defaulttitle:defaultsharingpolicy:photolibrary:oncompletion:).md)
- [photosSharedAlbumCustomizationSheet(isPresented:albumIdentifier:photoLibrary:onCompletion:)](swiftui/view/photossharedalbumcustomizationsheet(ispresented:albumidentifier:photolibrary:oncompletion:).md)
- [photosSharedAlbumPostingSheet(isPresented:items:defaultAlbumIdentifier:photoLibrary:completion:)](swiftui/view/photossharedalbumpostingsheet(ispresented:items:defaultalbumidentifier:photolibrary:completion:).md)

### Translation

- [translationPresentation(isPresented:text:attachmentAnchor:arrowEdge:replacementAction:)](swiftui/view/translationpresentation(ispresented:text:attachmentanchor:arrowedge:replacementaction:).md)
- [translationTask(_:action:)](swiftui/view/translationtask(_:action:).md)
- [translationTask(source:target:action:)](swiftui/view/translationtask(source:target:action:).md)
- [translationTask(source:target:preferredStrategy:action:)](swiftui/view/translationtask(source:target:preferredstrategy:action:).md)

### Security

- [certificateSheet(trust:title:message:help:)](swiftui/view/certificatesheet(trust:title:message:help:).md)

## See Also

### Providing interactivity

- [Input and event modifiers](swiftui/view-input-and-events.md)
- [Search modifiers](swiftui/view-search.md)
- [State modifiers](swiftui/view-state.md)
