Post

Replies

Boosts

Views

Activity

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 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.
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 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 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 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
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
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
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
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