Post

Replies

Boosts

Views

Activity

Reply to What is the replacement for deprecated contentEdgeInsets
Problem         //Warning : 'contentEdgeInsets' was deprecated in iOS 15.0:         //           This property is ignored when using UIButtonConfiguration         /*uiButton.contentEdgeInsets = UIEdgeInsets(top:    8.0, left:   8.0, bottom: 8.0,right:  8.0 ) Solution uiButton.configuration!.contentInsets = NSDirectionalEdgeInsets(top: 8.0, leading: 8.0, bottom: 8.0, trailing: 8.0) Apple has finally given access to "uiButton.configuration!.contentInsets" in their latest Xcode update. It now woks on iOS and macCatalyst.
Jun ’22
Reply to Crash on MacOS(M1 series): uncaught exception 'NSInternalInconsistencyException', reason:Invalid parameter not satisfying: <SPRoundedWindow: 0x139fbbab0>. "frame=!CGRectIsNull(frame)
I opened a ticket with Apple and they told me that the problem was indeed in the Safari engine and this problem is OS level, it has nothing to do with our app. I did as they told me and opened another ticket on somewhere else. I explained the crash in details with multiple crash dump. The problem has appeared in macOS Monterey, it was not there previously. macOS 12.4 does not solve the problem. If you want to see my problem look for : "Mac Catalyst WKWebview random crash since Monterey"
May ’22
Reply to URLRequest.httpShouldHandleCookies is broken beyond repair.
I tested further with a tool to see the https traffic (Charles). I can do this when I start the app urlRequest.httpShouldHandleCookies = true //Always inject cookies Or I can do this when I start the app urlRequest.httpShouldHandleCookies = false //Never inject cookies But if I change it on the fly, as soon as it is set to false, even if I set it to true later, it will never inject the cookies. urlRequest.httpShouldHandleCookies = isSendCookies //Never inject cookies
Nov ’21
Reply to What is the replacement for deprecated contentEdgeInsets
Now it is working on macOS 12.0 Problem is as soon as you use anything from Configuration, everything else stop working. There is obviously a conflict in that SDK. 2 mutually exclusive things in the same UIButton. Also if I use configuration to set image, there is only 1 image instead of the 2 that you could set on the good old UIButton. I will wait for Apple to make their mind about where the are going. I will let the messy storm pass.
Oct ’21