Post

Replies

Boosts

Views

Activity

Reply to Mac Catalyst WKWebview random crash since Monterey
@ShaddamIV Thanks for your feedback. I updated the answer. We can put that function in AppDelegate class and then called it from delegate function like this. func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { AppDelegate.swizzleInputTraits() } if you still face any issue with this code then I can help.
Sep ’22
Reply to Mac Catalyst WKWebview random crash since Monterey
@shaddamIV i just added a workaround for this issue in my maccatalyst app. Please follow this solution [https://stackoverflow.com/a/73772508/4160680) Hopefully this will work for you also. I tried to set the autocorrectiontype to no for my textfield, but still it was crashing due to other properties like issecuretextfield or setting the keyboard type. This workaround fixed all these cases for me. Thanks
Sep ’22
Reply to Crash on MacOS(M1 series): uncaught exception 'NSInternalInconsistencyException', reason:Invalid parameter not satisfying: <SPRoundedWindow: 0x139fbbab0>. "frame=!CGRectIsNull(frame)
I also faced the same crash in swift with the WKWebView of maccatalyst. In my case, when I open a screen that contains a UITextField and then open a screen that contain a WKWebView with editable area. It's crashes the app when i click on the WKWebview editable area. So i followed this workaround to fix this crash. [https://stackoverflow.com/a/73772508/4160680) Let's hope this will help in your case. I also faced this crash in WKWebview when I set the keyboard type to numberpad and autocorrectionType property to no in one of my UITextfield.
Sep ’22