Hugo_say,
@Hugo_say@mastodon.social avatar

@simonbs I may have missed something in your different solutions but wouldn’t a Reference class that stores only one property at a time be a solution ?

If you want multiple states to be grouped you can use @dynamicMemberLookup to make the solution more ergonomic (as presented in @sundell’s https://www.swiftbysundell.com/tips/combining-dynamic-member-lookup-with-key-paths/)

image/jpeg

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • kavyap
  • InstantRegret
  • mdbf
  • GTA5RPClips
  • cisconetworking
  • DreamBathrooms
  • ethstaker
  • magazineikmin
  • thenastyranch
  • ngwrru68w68
  • Youngstown
  • slotface
  • rosin
  • Durango
  • megavids
  • khanakhh
  • normalnudes
  • modclub
  • cubers
  • tacticalgear
  • osvaldo12
  • everett
  • Leos
  • anitta
  • provamag3
  • tester
  • JUstTest
  • lostlight
  • All magazines