---
title: "init(url:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uiprinter/init(url:)-1mibn"
---

# init(url:)

Creates and returns a printer with the specified location.

## Declaration

```swift
init(url: URL)
```

## Parameters

- `url`: A URL that identifies the location of the printer on your network.

## Return Value

Return Value A printer object representing the specified printer or nil if there was a problem initializing the object.

## Discussion

Discussion Use this method to create printer objects for printers whose address you already know. The printer does not need to be online or available when you call this method. The URL you specify is stored in the returned object so that you can contact the printer later using the contactPrinter(_:) method.
