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
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