Instance Method

go(to:)

Navigates to an item from the back-forward list and sets it as the current item.

Declaration

func go(to item: WKBackForwardListItem) -> WKNavigation?

Parameters

item

The item to navigate to. The item must be one of the items in the web view’s back-forward list.

Return Value

A new navigation to the requested item, or nil if it is already the current item or is not part of the web view's back-forward list.

See Also

Navigating

var allowsBackForwardNavigationGestures: Bool

A Boolean value indicating whether horizontal swipe gestures will trigger back-forward list navigations.

var backForwardList: WKBackForwardList

The web view's back-forward list.

var canGoBack: Bool

A Boolean value indicating whether there is a back item in the back-forward list that can be navigated to.

var canGoForward: Bool

A Boolean value indicating whether there is a forward item in the back-forward list that can be navigated to.

var allowsLinkPreview: Bool

A Boolean value that determines whether pressing on a link displays a preview of the destination for the link.

func goBack()

Navigates to the back item in the back-forward list.

func goBack(Any?)

Navigates to the back item in the back-forward list.

func goForward()

Navigates to the forward item in the back-forward list.

func goForward(Any?)

Navigates to the forward item in the back-forward list.

func load(URLRequest)

Navigates to a requested URL.