Post

Replies

Boosts

Views

Created

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
773
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.8k
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
568
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
633
May ’21
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?
Replies
2
Boosts
0
Views
773
Activity
Sep ’21
Swift Package Issue
Hi, I am trying to install a swift package and I keep getting this error. Error When I install it any other way, I get this error: Error Any ideas on how to fix it?
Replies
4
Boosts
0
Views
2.0k
Activity
Aug ’21
IAP Issue
I just launched my app on the App Store and the in app purchases aren't working. Any Ideas? Code Thanks in advanced!
Replies
0
Boosts
0
Views
549
Activity
Aug ’21
IAP SkProduct issue
Hi, I have this code and the guard let storekitProduct is always returning nil, no matter what and is therefore quitting the function. How do I fix this? Thanks in advanced! Code
Replies
1
Boosts
0
Views
670
Activity
Aug ’21
Title and Description ShareSheet
I have this share sheet code and I am trying to figure out how to edit "Plain Text". ShareSheet Code
Replies
2
Boosts
0
Views
6.5k
Activity
Aug ’21
Supporting Alternate App Icons
Hi, My app used to support alternate icons and now all of a sudden it does not anymore. Info.plist Thanks in advanced!😉
Replies
2
Boosts
0
Views
681
Activity
Aug ’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
Replies
4
Boosts
0
Views
1.8k
Activity
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!
Replies
3
Boosts
0
Views
568
Activity
Jul ’21
iCloud Keychain
Hi, How do I save to the iCloud Keychain from my app? I can't seem to find anything anywhere that isn't the equivalent of UserDefaults.
Replies
0
Boosts
0
Views
586
Activity
Jun ’21
Xcode 13
Hi, Whenever I am extracting Xcode 13 beta 1, it gets stuck at the end. Has anyone else had this issue?
Replies
0
Boosts
0
Views
435
Activity
Jun ’21
Why is this loop not working
Hi, I have this code accessing firestore and my loop for getting multiple sets of data. Code Thank you in advanced!
Replies
2
Boosts
0
Views
603
Activity
Jun ’21
Sharesheet and iPads
Hi, I have a share sheet and in the simulator (I don't have an actual iPad) the share sheet will not show. Code Thanks in advanced!
Replies
1
Boosts
0
Views
1.2k
Activity
Jun ’21
Search Function
Hi, I have a firebase database and was wondering what the best way to search it with keywords would be. I am making a jokes app and would like to add this functionality.
Replies
1
Boosts
0
Views
535
Activity
Jun ’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
Replies
0
Boosts
0
Views
633
Activity
May ’21
Wait until transaction is finished
Hi, How can I wait until an IAP transaction/restore is finished? Thanks in advanced.
Replies
15
Boosts
0
Views
2.1k
Activity
May ’21