---
title: "init(url:entersReaderIfAvailable:)"
framework: safariservices
role: symbol
role_heading: Initializer
path: "safariservices/sfsafariviewcontroller/init(url:entersreaderifavailable:)-3aatz"
---

# init(url:entersReaderIfAvailable:)

Initializes a Safari view controller that will load the specified URL, entering Reader mode if Reader mode is requested and available.

## Declaration

```swift
init(url URL: URL, entersReaderIfAvailable: Bool)
```

## Parameters

- `URL`: The URL to navigate to. The URL must use the http or https scheme.
- `entersReaderIfAvailable`: On output, doc://com.apple.documentation/documentation/Swift/true if Reader mode should be entered automatically when it is available for the webpage; otherwise, doc://com.apple.documentation/documentation/Swift/false.

## Return Value

Return Value A newly created Safari view controller.

## Discussion

Discussion entersReaderIfAvailable applies only to the first page loaded.

## See Also

### Creating a View Controller

- [init(url:configuration:)](safariservices/sfsafariviewcontroller/init(url:configuration:)-305vl.md)
- [SFSafariViewController.Configuration](safariservices/sfsafariviewcontroller/configuration-swift.class.md)
- [init(url:)](safariservices/sfsafariviewcontroller/init(url:)-5kpkn.md)
