<!--
{
  "availability" : [
    "iOS: 4.2.0 -",
    "iPadOS: 4.2.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPrintInteractionController/dismiss(animated:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPrintInteractionController(im)dismissAnimated:"
  },
  "title" : "dismiss(animated:)"
}
-->

# dismiss(animated:)

Dismisses the printing-options sheet or popover.

```
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

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`](/documentation/UIKit/UIApplication/willChangeStatusBarOrientationNotification) notification to find out when the device orientation is about to change.

---

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)