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

# dismiss(animated:)

Dismisses the picker.

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

## Parameters

`animated`

<doc://com.apple.documentation/documentation/Swift/true> to animate the dismissal of the picker or <doc://com.apple.documentation/documentation/Swift/false> to remove it without animations.

## Discussion

This method dismisses a picker that you previously presented. When using this method to dismiss a picker, the picker does not call the [`printerPickerControllerWillDismiss(_:)`](/documentation/UIKit/UIPrinterPickerControllerDelegate/printerPickerControllerWillDismiss(_:)) or [`printerPickerControllerDidDismiss(_:)`](/documentation/UIKit/UIPrinterPickerControllerDelegate/printerPickerControllerDidDismiss(_:)) methods of your delegate object.

User interactions with the picker can also dismiss the picker automatically. For example, if the user selects a printer or cancels the picker, the picker dismisses itself automatically. Use this method to dismiss a picker programmatically in response to other events in your app.

---

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)