twodayslate / claw

A lobste.rs Reader
https://apps.apple.com/us/app/id1531645542
Other
35 stars 1 forks source link

Make settings an actual environment key #15

Closed twodayslate closed 1 year ago

twodayslate commented 3 years ago

https://swiftwithmajid.com/2020/12/09/styling-custom-swiftui-views-using-environment/

twodayslate commented 3 years ago

This should also be applied to openURL and observableSheet if possible. This might not be doable after #24 since openURL isn't really a "global" anymore

WhollySoftware commented 3 years ago

Hello sir

I checked and try to make environment key of setting but there is problem is when we try to make it then all setting not apply in complete app because environment key used is pass data to all sub screen or view. but in your project we need to update object from sub view to main view.