Post #3678293
2026-07-08 05:22 UTC
My new repo is a tutorial project for a topic that does not get talked about very much: custom dynamic properties for SwiftUI view components.
The argument I make here is that dynamic properties can function similar to React Hooks: these are small stateful primitives for business logic that are more reusable than putting that business logic in view components or view modifiers.
https://github.com/vanvoorden/TaskProperty
Replies (1)
-
@vanvoorden@mastodon.social 2026-07-08 05:22
I do present an example and some sample code. But the goal of the tutorial is not *this specific* example. It's about getting you to start thinking creatively about this pattern and looking for new ways this can clean up stateful business logic in your own products. Please let me know what you think. Thanks!