Post

Replies

Boosts

Views

Activity

Comment on URLSession works for request but not NWConnection
I am targeting multiple web servers that I don't have control over, but each thread/task will only target one specific server, so there is no need to manage cookies for multiple sites at the same time. These web-servers use a shared service so all the request/responses will be similar across. I could use the NWConnection solution that I already have which works but just unsure how to get the Set Cookies from responses and add them to next requests.
Mar ’25
Comment on Use proxy for http request from iOS device
Thank you so much! I got it connected to the proxy but now there's a little bug in the request, could you please have a look here. Also If I am using NWConnection how would you recommend to improve the speed calculation? I mean I can't use a method such as below since its not a URLSession. func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
Feb ’25
Comment on URLSession works for request but not NWConnection
I am targeting multiple web servers that I don't have control over, but each thread/task will only target one specific server, so there is no need to manage cookies for multiple sites at the same time. These web-servers use a shared service so all the request/responses will be similar across. I could use the NWConnection solution that I already have which works but just unsure how to get the Set Cookies from responses and add them to next requests.
Replies
Boosts
Views
Activity
Mar ’25
Comment on Use proxy for http request from iOS device
Thank you so much! I got it connected to the proxy but now there's a little bug in the request, could you please have a look here. Also If I am using NWConnection how would you recommend to improve the speed calculation? I mean I can't use a method such as below since its not a URLSession. func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
Replies
Boosts
Views
Activity
Feb ’25
Comment on getting size of scroll view in swift
@Claude31 no this is not the real code just a minimal reproducible example that I tried to simplify. No I didn't get the model from that link.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on Build succeeds but errors highlighted in the editor
Im having the same issue @kam do you know a fix
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’22
Comment on LocationManager Error when requesting location
@chitgoks the same thing is happening to me Im getting error Error Domain=kCLErrorDomain Code=1 "(null)" , I also have the same code as you. Any idea whats goin on
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’22