Post

Replies

Boosts

Views

Activity

swiftui button state change with urlsession
Hi, I have a scenario where the button has multiple states such as Available, Pressed, Accepted and Cancelled with corresponding textual appearances. When the button is clicked in the Available state, I make a web api call and change the button state to Pressed. Depending on the api request the state changes to accepted and cancelled. I can accomplish the task using uikit and completion handlers, but can you suggest a way to handle the scenario using swiftui and combine (or similar)? Thanks
1
0
1.2k
Jul ’20
programmatically delete public CloudKit database records outside the app and from web
Hi, I have a public cloudkit database that I use in the app with core data. In the iOS app, when the user deletes a row, I hide the corresponding row rather than deleting, so the record remains in the cloudkit. Right now, I remove the records from cloudkit dashboard manually. Is there a way to remove the records in the public cloudkit database programmatically from outside the app. Thanks.
0
0
555
Jan ’21
core data public cloud kit one to many relationship entity's attribute does not update
After the local and public database sync is done, I am trying to modify an attribute of an object which I access thru one to many relationship. Then, I save the context. This object is created by another user. The local change does not update the public database. Is this a limitation of public database? Can it be because the object is created by another user?
0
0
621
Jan ’21