That's great news. But still we need the hack as we can't force every customer to move to macOS 13.
Post
Replies
Boosts
Views
Activity
@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.
@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
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.