WKBackForwardList
An object that manages the list of previously loaded webpages, which the web view uses for forward and backward navigation.
Declaration
@MainActor class WKBackForwardListOverview
Use a WKBackForwardList object to retrieve a web view’s previously loaded pages. Typically, you don’t create WKBackForwardList objects directly. Each web view creates one automatically and uses it to store the history of all loaded pages. Fetch this object from your web view’s backForwardList property and use its contents to facilitate programmatic navigation.