WKNavigationAction
An object that contains information about an action that causes navigation to occur.
Declaration
@MainActor class WKNavigationActionOverview
Use a WKNavigationAction object to make policy decisions about whether to allow navigation within your app’s web view. You don’t create WKNavigationAction objects directly. Instead, the web view creates them and delivers them to the appropriate delegate objects. Use the methods of your delegate to analyze the action and determine whether to allow the resulting navigation to occur.