---
title: "print(to:completionHandler:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiprintinteractioncontroller/print(to:completionhandler:)"
---

# print(to:completionHandler:)

Prints directly to the specified printer.

## Declaration

```swift
func print(to printer: UIPrinter, completionHandler completion: UIPrintInteractionController.CompletionHandler? = nil) -> Bool
```

## Parameters

- `printer`: The printer to use for printing. You can obtain a list of available printers using a doc://com.apple.uikit/documentation/UIKit/UIPrinterPickerController object.
- `completion`: The block to execute when the print operation finishes.

## Return Value

Return Value true if printing was successful or false if there was a problem.

## Discussion

Discussion This method starts the print job and displays the printing progress indicator to the user. This method associates the current printing information (available in the printInfo property) with the job but disables duplex printing. Upon completion of the print job, the print interaction controller executes the block in the completion parameter.

## See Also

### Printing directly to a printer

- [UIPrintInteractionController.CompletionHandler](uikit/uiprintinteractioncontroller/completionhandler.md)
