---
title: "dismiss(animated:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiprintinteractioncontroller/dismiss(animated:)"
---

# dismiss(animated:)

Dismisses the printing-options sheet or popover.

## Declaration

```swift
func dismiss(animated: Bool)
```

## Parameters

- `animated`: doc://com.apple.documentation/documentation/Swift/true to animate the dismissal, otherwise doc://com.apple.documentation/documentation/Swift/false.

## Discussion

Discussion You should dismiss the printing options when they are presented in a sheet or animated from a rectangle and the user changes the orientation of the device. (This, of course, assumes your application responds to orientation changes.) You should then present the printing options again once the new orientation takes effect. You can observe the willChangeStatusBarOrientationNotification notification to find out when the device orientation is about to change.

## See Also

### Presenting the printing user interface

- [present(animated:completionHandler:)](uikit/uiprintinteractioncontroller/present(animated:completionhandler:).md)
- [present(from:animated:completionHandler:)](uikit/uiprintinteractioncontroller/present(from:animated:completionhandler:).md)
- [present(from:in:animated:completionHandler:)](uikit/uiprintinteractioncontroller/present(from:in:animated:completionhandler:).md)
