A viewmodifier can have its own @State, etc. I can’t think of anything that couldn’t be accomplished with an extension on View with a few tricks but ViewModifiers are easier & cleaner IMO. I usually have a ViewModifier along with an extension on view used to apply it
7 comments
[ 4.7 ms ] story [ 23.7 ms ] thread