Contents

mainFrameNavigation

Declaration

var mainFrameNavigation: WKNavigation? { get }

Discussion

The most recent main frame navigation that took place that encompasses this navigation action.

If this WKNavigationAction represents a request to open a new WKWebView or it represents a frame load that is not in the main frame of an existing WKWebView, then mainFrameNavigation will be nil.