Skip to content

Commit

Permalink
Supports entersReaderIfAvailable configuration in WebpageOperation. (#…
Browse files Browse the repository at this point in the history
…312)

It is possible now to show an SFSafariViewController with entersReaderIfAvailable set to false.
  • Loading branch information
Andreas Braun authored and danthorpe committed May 11, 2016
1 parent 7d1f0f5 commit c334749
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Features/iOS/WebpageOperation.swift
Expand Up @@ -19,9 +19,9 @@ protocol WebpageController: class {
public class WebpageOperation<From: PresentingViewController>: Operation, SFSafariViewControllerDelegate {

let operation: UIOperation<SFSafariViewController, From>

public init(url: NSURL, displayControllerFrom from: ViewControllerDisplayStyle<From>, sender: AnyObject? = .None) {
operation = UIOperation(controller: SFSafariViewController(URL: url, entersReaderIfAvailable: true), displayControllerFrom: from, sender: sender)
public init(url: NSURL, displayControllerFrom from: ViewControllerDisplayStyle<From>, entersReaderIfAvailable: Bool = true, sender: AnyObject? = .None) {
operation = UIOperation(controller: SFSafariViewController(URL: url, entersReaderIfAvailable: entersReaderIfAvailable), displayControllerFrom: from, sender: sender)
super.init()
addCondition(MutuallyExclusive<UIViewController>())
}
Expand Down

0 comments on commit c334749

Please sign in to comment.