Skip to content

Latest commit

 

History

History
91 lines (60 loc) · 1.6 KB

WebView.md

File metadata and controls

91 lines (60 loc) · 1.6 KB

WebView

@available(iOS 9.0, *) public class WebView: WKWebView

Inheritance

WKWebView

Initializers

init()

public init()

init(baseURL:htmlString:)

convenience init(baseURL: URL? = nil, htmlString: () -> String)

init(url:)

convenience init(url: URL)

init(request:)

convenience init(request: URLRequest)

init(URL:allowingReadAccessTo:)

convenience init(URL: URL, allowingReadAccessTo readAccessURL: URL)

init(data:mimeType:characterEncodingName:baseURL:)

convenience init(data: Data, mimeType MIMEType: String, characterEncodingName: String, baseURL: URL)

Methods

loadHTMLString(baseURL:htmlString:)

@discardableResult func loadHTMLString(baseURL: URL? = nil, htmlString: () -> String) -> Self

load(url:)

@discardableResult func load(url: URL) -> Self

load(request:)

@discardableResult func load(request: URLRequest) -> Self

loadFile(URL:allowingReadAccessTo:)

@discardableResult func loadFile(URL: URL, allowingReadAccessTo readAccessURL: URL) -> Self

load(data:mimeType:characterEncodingName:baseURL:)

@discardableResult func load(data: Data, mimeType MIMEType: String, characterEncodingName: String, baseURL: URL) -> Self

set(uiDelegate:)

@discardableResult func set(uiDelegate delegate: WKUIDelegate) -> Self

set(navigationDelegate:)

@discardableResult func set(navigationDelegate delegate: WKNavigationDelegate) -> Self