Post

Replies

Boosts

Views

Activity

Comment on [iOS 26.2] Crash due to WKScriptMessageHandler delegate
Also which object do you release? And when exactly? In general the script message handlers should be set once when creating the WebView and released only before releasing the WebView itself. The JavaScript code is running completely independently from the swift code of your App, so it can be tricky to find the correct time to release the message handler and being sure that it is no longer in use by the JavaScript code.
Topic: Safari & Web SubTopic: General Tags:
Dec ’25
Comment on [iOS 26.2] Crash due to WKScriptMessageHandler delegate
How does your JavaScript code look like? I guess if the message you post from your JavaScript code can not be converted into a swift-compatible object (like a string, dictionary etc), the "body" might be nil (though according to the API, body is not an optional and therefore can not be nil). This would be a bug in the iOS, however you should be able to make sure that this bug is never triggered: Just make sure your JavaScript code only posts valid objects through the message handler.
Topic: Safari & Web SubTopic: General Tags:
Dec ’25
Comment on WKWebView isBlockedByScreenTime
Thank you very much for the clarification. However I think this needs some official documentation. Also it is unclear why this only covers the "App Limits" section of Screen Time and not the very similar content-based restrictions. In both cases the limits are based on the URLs of web sites, so there's no logical difference. If you expose these errors to Apps, they really needs to be documented and "stable". Apps need to know the reason for errors in order to be able to respond correctly.
Topic: Safari & Web SubTopic: General Tags:
Dec ’25
Comment on Apple’s age rating deadline: will apps be blocked after 31 Jan 2026?
Unfortunytely simply building and uploading the App again might not always work - at least not without some extensive testing and maybe some changes. This is because we now use a new version of Xcode, new Frameworks, new mandatory keys for the Info-plist, etc. Depending of the age of the last App release, there can be a lot of changes which may need attention.
Dec ’25
Comment on UISegmentedControl Not Switching Segments on iOS Beta 26
Yes and no. When creating the button programatically you can actually tap on sections to select them and this does indeed work fine. However, if you do not tap, but instead drag the selection (which will the show a glass element which is then dragged), then in most cases a “ghost selection” is shown on top of the first segment (regardless of the section you are coming from and to where you are going to). Though this seems to be just a visual glitch and doesn’t result in a wrong result.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jul ’25
Comment on Xcode 26 / iOS 26 UISegmentedControl returns to index 0 incorrectly
Unfortunately, segmented buttons defined via storyboard do not work on real devices. A simple project without any code, just putting a segmented control into a view in the default storyboard, will already show the error on real devices (tested on an iPad Pro 11” M4 with iPadOS 26 beta 3). it looks like the issues does not occur if the segmented control is created programmatically. I’d did not find a single instance where it worked with storyboards or nib/xib files.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jul ’25
Comment on addSubview with bounds not working
Setting frames and bounds is still supported. But you need to make sure the property "translatesAutoresizingMaskIntoConstraints" of the views is set currently. This property tells the iOS wether you want to use constraints (false) or the frames/bounds and autoresizing masks (true) to do the layout.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jul ’25
Comment on WKWebView requires authentication
I would check other login forms as well. If it is working there, then it might be something special that microsoft is doing (and sometimes I have the impression that MS loves to do unusual things instead of sticking to common standards). It might be a special issue of this site. I do not have any personal experience with MS logins, but on "normal" other sites I do not have issues with the login status in WKWebView
Topic: Safari & Web SubTopic: General Tags:
Jun ’25