getPagesWithCompletionHandler(_:)
Calls the completion handler with all of the tab’s active and preloading pages.
Declaration
func getPagesWithCompletionHandler(_ completionHandler: @escaping @Sendable ([SFSafariPage]?) -> Void)func pages() async -> [SFSafariPage]?Parameters
- completionHandler:
A block to call when the tab’s pages are retrieved.
Discussion
The tab’s pages include the active page and other pages that Safari might be loading in the background; for example, Top Hits.