Post

Replies

Boosts

Views

Activity

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.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’21
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
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’21
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"
Topic: App & System Services SubTopic: Core OS Tags:
May ’22
Reply to What is the replacement for deprecated contentEdgeInsets
Does not work, I get the error : Value of type 'UIButton' has no member 'configuration' This line of code : var configuration = UIButton.Configuration.filled() will generate the error : Type 'UIButton' has no member 'Configuration'
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’21
Reply to What is the replacement for deprecated contentEdgeInsets
As I said above, UIButton.Configuration does not exist and it should.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to What is the replacement for deprecated contentEdgeInsets
Yes, my project is iOS 15 and is also Mac Catalyst. So I only have 1 code for iOS and macOS, no project settings switching.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to What is the replacement for deprecated contentEdgeInsets
I have Xcode 13.0, you are right, I can't set macOS 12. So I guess I must wait for Apple to fix it in the next Xcode? So eventually it will resolve itself with the solution you gave me. Thank you good sire.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’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.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to What is the replacement for deprecated contentEdgeInsets
It is now working, but everything else stop working (I am not the only one reporting that). Every parameters of UIButton will be ignored if you use Configuration. Also Configuration is too limited compared to good old button. Many features missing like image for when it is pressed. I will let Apple clean this mess before desecrating my code.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
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
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to URLRequest.httpShouldHandleCookies is broken beyond repair.
urlRequest.httpShouldHandleCookies control also the absorbtion of set-cookie, I thought it was taking the cookies from the WKWebview. My mistake, I will go hide under a rock now to hide my shame. This whole post should be deleted since it is useless.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to WKWebview paste with keyboard paste text twice.
The exact same code for iOS and macOS because Catalyst. Using the keyboard to paste on my iPad does work correctly, but it paste twice on my Mac. I am talking about pasting text inside and input box in a web page running on WKWebview.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to WKWebview paste with keyboard paste text twice.
No, it is still there. Do you also have this problem? https://developer.apple.com/forums/thread/698038
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to UIPrinterPickerController, UIPrintInteractionController, UIPrinter do not work on macOS Catalyst
Yes my Printing is allowed in app sandbox.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to WKWebview paste with keyboard paste text twice.
mackhag, you are our saviour, your solution is elegant, brilliant and simple. Now please fix the world. I would recommend that you put that in the code so as to not interfere with the iPad and iPhone version, because this problem does not exist on iOS. #if targetEnvironment(macCatalyst) //Put the mackhag fix here #endif
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Apr ’22
Reply to Mac Catalyst WKWebview random crash since Monterey
The problem is still there on macOS Monterey 12.3.1 Not everyone has that problem, I never had it myself on my 2 Macs. I would say 1 in a 10 or 1 in 100? We have 2 000 people using our app every day and I receive 1-2 call per week.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’22
Reply to Mac Catalyst WKWebview random crash since Monterey
macOS 12.4 problem is still there.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’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"
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’22