Instance Property

allowsBackForwardNavigationGestures

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

Declaration

var allowsBackForwardNavigationGestures: Bool { get set }

Discussion

The default value is false.

See Also

Navigating

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() -> WKNavigation?

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() -> WKNavigation?

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

func goForward(Any?)

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

func go(to: WKBackForwardListItem) -> WKNavigation?

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

func load(URLRequest) -> WKNavigation?

Navigates to a requested URL.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software