WebView tutorial on WWDC25

you guys literally need update this video of introducing the swifui webview. these apis even not exist... https://developer.apple.com/videos/play/wwdc2025/231/

Answered by DTS Engineer in 861290022

The shipped API was page.navigations, please use that instead. For example::

For example:


do {
    for try await event in browserManager.page.navigations {
        switch event {
        case .committed:
        case .finished:
        case .receivedServerRedirect:
        case .startedProvisionalNavigation:
        }
    }
} catch {

}

The shipped API was page.navigations, please use that instead. For example::

For example:


do {
    for try await event in browserManager.page.navigations {
        switch event {
        case .committed:
        case .finished:
        case .receivedServerRedirect:
        case .startedProvisionalNavigation:
        }
    }
} catch {

}
WebView tutorial on WWDC25
 
 
Q