WKWebView

public extension WKWebView
  • Setup the web view for Bionic Reading.

    Use this if you want to use Bionic Reading in JavaScript. This is not needed when calling enterBionicReadingMode(selector:) which will setup the web view automatically.

    Declaration

    Swift

    func makeBionicReadable()
  • Enter Bionic Reading Mode.

    Apply Bionic Reading to the current page using the settings from BionicReadingSettings (UserDefaults)

    Declaration

    Swift

    func enterBionicReadingMode(selector: String? = nil)

    Parameters

    selector

    CSS selector which lets you specify to which elements you want to apply Bionic Reading. If nil, it will be applied to the whole page.

  • Exit Bionic Reading Mode.

    Switch back to regular text.

    Declaration

    Swift

    func exitBionicReadingMode()