---
title: "init(initiallySelectedPrinter:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uiprinterpickercontroller/init(initiallyselectedprinter:)"
---

# init(initiallySelectedPrinter:)

Creates and returns a printer picker with an initially selected printer object.

## Declaration

```swift
init(initiallySelectedPrinter printer: UIPrinter?)
```

## Parameters

- `printer`: A printer object to select initially. Specify nil if you do not want to display a selected printer initially.

## Return Value

Return Value An initialized printer picker controller object.

## Discussion

Discussion After creating a printer picker controller, assign your delegate as needed and present the controller.
