HapticFeedbackKit icon indicating copy to clipboard operation
HapticFeedbackKit copied to clipboard

Removing observable class boilerplate and using native @AppStoge

Open sisoje opened this issue 1 year ago • 0 comments

This is just a quick proof of concept:

  • @AppStorage is already observable so no need to write observable class boilerplate code.
  • Using dynamic property wrapper one can easily share stored values in multiple views/viewmodifiers.
  • Projected value gives native bool binding for toggle, another boilerplate gone.

sisoje avatar Feb 01 '24 01:02 sisoje