Instance Property

estimatedProgress

An estimate of what fraction of the current navigation has been loaded.

Declaration

var estimatedProgress: Double { get }

Discussion

This value ranges from 0.0 to 1.0 based on the total number of bytes expected to be received, including the main document and all of its potential subresources. After navigation loading completes, the estimatedProgress remains at 1.0 until a new navigation starts, at which point the estimatedProgress is reset to 0.0. The WKWebView class is key-value observing (KVO) compliant for this property.

See Also

Loading Content

var hasOnlySecureContent: Bool

A Boolean value indicating whether all resources on the page have been loaded through securely encrypted connections.

func loadHTMLString(String, baseURL: URL?)

Sets the webpage contents and base URL.

var isLoading: Bool

A Boolean value indicating whether the view is currently loading content.

func reload()

Reloads the current page.

func reload(Any?)

Reloads the current page.

func reloadFromOrigin()

Reloads the current page, performing end-to-end revalidation using cache-validating conditionals if possible.

func reloadFromOrigin(Any?)

Reloads the current page, performing end-to-end revalidation using cache-validating conditionals if possible.

func stopLoading()

Stops loading all resources on the current page.

func stopLoading(Any?)

Stops loading all resources on the current page.

func loadFileURL(URL, allowingReadAccessTo: URL)

Navigates to the requested file URL on the filesystem