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
Comment on Xcode can't find prepareCustomLanguageModel
My bad, it returned "Cannot find 'SFSpeechLanguage' in scope" But even worse, also my bad, it turns out that I should have been using SFSpeechLanguageModel I really wish this forum would allow you to delete your OP.
Replies
Boosts
Views
Activity
Jul ’25
Comment on How to turn off "connect via network" on Xcode 15?
Sorry, but I have to turn off WiFi on my iPhone to get the debugger to work over the wire (speed tells the truth).
Replies
Boosts
Views
Activity
Jan ’25
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:
Replies
Boosts
Views
Activity
Jun ’24
Comment on Xcode 15 preview won't run till I do a debug session and run the simulator first
hopefully it’s this: FB13788117
Replies
Boosts
Views
Activity
May ’24
Comment on Can a button call a new view without using NavigationStack/Link/View?
I accept your answer, but that shouldn't be the answer. As dangerous as certain things are, i.e. calling a null pointer, we should be allowed to design as we like.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’24
Comment on Xcode 15 preview won't run till I do a debug session and run the simulator first
Finally happened again, so I ran sysdiagnose before and after and submitted it to feedback
Replies
Boosts
Views
Activity
May ’24
Comment on Is there an .onAppear equivalent that works on individual items in a view, and also gets called on redraws?
That's what I was looking for. Have been trying to find a website that lists all modifiers that Apple provides.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’23
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:
Replies
Boosts
Views
Activity
Mar ’23
Comment on Looking for tutorial to write apps that receive push notifications (i.e. Messaging)
I really like Ray's (Wenderlich) tutorials.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’22
Comment on Where can I call register(_:forCellReuseIdentifier:) if I am not using a UITableViewController?
It was just a simple oversight, because I was trying it out quickly. It’s now in there and cell is no longer an optional.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’22
Comment on Alert action disabling depending on textField input
I find the way Swift handles certain things (i.e. the OP) a little too drawn out. Therefore I doubly appreciate this excellent, well explained answer.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’22
Comment on Is there an order for response, data, and error in URLSession delegates?
I have to clean them up, because at first I was using the wrong delegate. However, I do need to eventually add download as well. So will have to see which I need and don't at some point
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’22
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:
Replies
Boosts
Views
Activity
May ’22
Comment on Am unable to receive HTTP responses with UIViewController set as URLSessionDelegate
Oh no, I got it as soon as I read the line you made me throw in...perfect teaching method. Was just posting the answer over at StackOverflow, was going to do it here next, but you beat me to it. Thank you again.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’22
Comment on Am unable to receive HTTP responses with UIViewController set as URLSessionDelegate
Oh you.....I see what you did there. I'm going to start calling what you did "Passive/Aggressive teaching." And I mean that as a compliment. Thank you. — SergioDCQ 40 minutes ago Edit this post  Report post of SergioDCQ
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’22