Instance Method

initWithURL:entersReaderIfAvailable:

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

Declaration

- (instancetype)initWithURL:(NSURL *)URL entersReaderIfAvailable:(BOOL)entersReaderIfAvailable;

Parameters

URL

The URL to navigate to. The URL must use the http or https scheme.

entersReaderIfAvailable

On output, YES if Reader mode should be entered automatically when it is available for the webpage; otherwise, NO.

Return Value

A newly created Safari view controller.

Discussion

entersReaderIfAvailable applies only to the first page loaded.

See Also

Creating a View Controller

- initWithURL:configuration:

Initializes and configures a Safari view controller that loads the specified URL.

SFSafariViewControllerConfiguration

A configuration object that defines how a Safari view controller should be initialized.

- initWithURL:

Initializes a Safari view controller that loads the specified URL.