WebViewController

open class WebViewController : UIViewController, UIWebViewDelegate

A web view controller, built on UIWebView, to display bundled HTML content.

  • The web view.

    Declaration

    Swift

    open internal(set) var webView: UIWebView?
  • Whether links should open in the receiver or open in Safari (default).

    Declaration

    Swift

    open var openLinksExternally = true
  • The URL to load on view instantiation.

    Declaration

    Swift

    open var startURL: URL?
  • Undocumented

    Declaration

    Swift

    open class WebViewController : UIViewController, UIWebViewDelegate
  • Undocumented

    Declaration

    Swift

    open class WebViewController : UIViewController, UIWebViewDelegate
  • Wraps given HTML content in a full document, applying appStyle.

    Declaration

    Swift

    open func htmlDocWithContent(_ content: String) -> String

    Parameters

    content

    The HTML Body content, wrapped into <body><div>...</div></body>.

    Return Value

    A full HTML document string