Toggle navigation
Find or Create a Group
Help
Log In
Sign Up
Help
Log In
Sign Up
Home
Messages
Hashtags
×
×
×
Close
Likes
cocoa@apple-dev.groups.io
Topics
WkWebView delegates
×
Close
Search
Date
Date
1 - 1 of 1
previous page
next page
WkWebView delegates
Gerriet M. Denkmann
#601
macOS 13.5
I made a WkWebView and added navigationDelegate and uiDelegate and implemented (almost) all delegate methods, each containing a print().
1. I never see any prints (running in Xcode)
2. the debugger never stops in any delegate function
3. when I implement:
func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void)
{
print(#function + " navigationAction \(navigationAction)")
decisionHandler(.allow)
}
I just see a blank page.
The content loads correctly if I comment this function out.
What am I doing wrong?
Gerriet
More
All Messages By This Member
×
Close
Verify Delete
Are you sure you wish to delete this message from the message archives of cocoa@apple-dev.groups.io?
This cannot be undone.
×
Close
Verify Repost
Are you sure you wish to repost this message?
×
Close
Report Message
Reason
Report to Moderators
I think this message isn't appropriate for our group. The Group moderators are responsible for maintaining their community and can address these issues.
Report to Groups.io Support
I think this violates the Terms of Service. This includes: harm to minors, violence or threats, harassment or privacy invasion, impersonation or misrepresentation, fraud or phishing.
Note:
Your email address is included with the abuse report.
×
Close
Split Topic
The new topic will begin with this message. Subject of the new topic:
1 - 1 of 1
previous page
1
next page
Previous Topic
Next Topic
More Options
More
Home
Hashtags
About
Features
Pricing
Updates
Terms
Help
Twitter
Toggle navigation
About
Features
Pricing
Updates
Terms
Help
©
2023
Groups.io