Contents

dismissButtonStyle

The style of dismiss button to use in the navigation bar to close the Safari view controller.

Declaration

var dismissButtonStyle: SFSafariViewController.DismissButtonStyle { get set }

Discussion

The Safari view controller sets dismissButtonStyle to SFSafariViewController.DismissButtonStyle.close during initialization, displaying “xmark” icon by default. You can use other values such as SFSafariViewController.DismissButtonStyle.done to show “checkmark” icon to provide consistency with your app.

See Also

Configuring the View Controller