OOPer, you found the solution, I put it inside the completion handler and everything just worked as I needed.
Just a problem of my newer in Swiftui , but I'm growing.......
Thanks again.
Post
Replies
Boosts
Views
Activity
Thanks, I will study transfer information from button to the completion handler
Here it's my declaration (inside the view):
@State var aspStatus = AspStatus(success: false, message: "")
Thanks OOPer, I understand what you wrote, so, to my needs, I shoud make exactly the same thing but synchronous.
I will look for it, if you have some basic writing about it, let me know
aspStatus is a Class that return to me true or false (if false, a message why its false):
class AspStatus {
var success: Bool
var message: String
init(success: Bool, message: String) {
self.success = success
self.message = message
}
}
I just don't understand your last part:
You need to write everything you want to run after the task is completed within the completion handler.
I'm getting the same problem
Have you solved it?