Post

Replies

Boosts

Views

Activity

Comment on Is there a simple way to adding files to iPhone simulator, for use with Xcode?
What I realized, just now, is that it only works from my Mac's internal HD, the boot drive. When I tried it off of my external HDs, which is what I do all of my work from, I get the message: Simulator device failed to open file:///Volumes/Ext.%20Micron%20SSD/sergioq/Documents/myfriend.html. Somehow I never stopped to realize to try the boot drive. Thanks
Topic: Community SubTopic: Apple Developers Tags:
Jun ’24
Comment on Why do I get a "Publishing changes from within view updates is not allowed" when moving my @Bindings to @Published in an @ObservableObject?
I assume because the other published vars aren't affected, that it has to do with the fact that the NavigationView is wrapped in an .alert(item: ) might have something to do with this warning and supposed solution? Won't mark this solved, will wait for some more input from other developers, as I am too green.
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’23
Comment on Is there an order for response, data, and error in URLSession delegates?
I currently have it as below, so that the completionHandler gets called first and no matter what ` func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: (URLSession.ResponseDisposition) -> Void) { completionHandler(URLSession.ResponseDisposition.allow) if let httpResponse = response as? HTTPURLResponse { xFile?.httpResponse = httpResponse.statusCode DispatchQueue.main.async { [self] in if httpResponse.statusCode != 200 { ...my code } } } }`
Topic: Programming Languages SubTopic: Swift Tags:
May ’22