dismiss(animated:)
Dismisses the picker.
Declaration
func dismiss(animated: Bool)Parameters
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(_:) or 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.