Post

Replies

Boosts

Views

Activity

Change state from other struct
I have this code:     static var viewModels = [RestaurantListViewModel]() {         didSet {             dataSet = true             print("data set")         }     } When it didSet is called, I want it to change a state in another struct, how can I accomplish this?
2
0
661
Sep ’21
Lost Connection
I have an M1 Mac and I am on Monterey beta 4. I have Xcode 12 and whenever I try to run my iOS app on my Mac natively, I get this error message. Could not attach to pid : “4837” Lost Connection Full Log Any Ideas? Thanks in advanced
4
0
1.5k
Jul ’21
Why is this clearing?
This is driving me crazy. I have this code: Utilities.getKnockKnockJokes {             self.previousKnockKnockJoke = self.currentKnockKnockJoke             print("currentKnockKnockJoke = \(self.currentKnockKnockJoke)")             self.currentKnockKnockJoke = KnockKnockJokes.knockKnockJokes.randomElement()!             print("newCurrentKnockKnockJoke = \(self.currentKnockKnockJoke)")             self.singleServeText.text = self.currentKnockKnockJoke         } The function that is called is bellow: getKnockKnockJokes Thank you in advanced!
3
0
483
Jul ’21
IAP Restore
Hi, In my app, I do all the validation locally and the documentation doesn't explain how to restore purchases when the app restores everything locally. Here is my code. Thank you for your time. Code - https://developer.apple.com/forums/content/attachment/f7000d1d-5901-4758-8b91-d4f2b3dc5a3f
0
0
548
May ’21