5 ms·
Yeah, I’ve wrestled with this, too. Usually I’ve compromised on having sub-states (Swift enums with associated types alleviate some of the pain), but still does
by programmarchy 4y ago
Yeah, I’ve wrestled with this, too. Usually I’ve compromised on having sub-states (Swift enums with associated types alleviate some of the pain), but still doesn’t feel quite right.
- rcme 4y agoYou should try Swift's Combine library. It works pretty nicely for modeling / cleaning up complex async flows.