SwiftTheming icon indicating copy to clipboard operation
SwiftTheming copied to clipboard

Theme appearance mismatch after change from sheet

Open uy opened this issue 1 year ago • 1 comments

Hi,

I'm facing with problem as described below;

  1. I have 2 view. First one HomeView, second one ProfileView.
  2. ProfileView open as sheet from HomeView.
  3. Then I change themeAppearance from ProfileView theme only changed for ProfileView.
  4. Theme open as last theme but on ProfileView icon doesn't change (stay as previous appearance) when I close app and restart after a few seconds.

For 3. line error I fixed as below;

  1. I created @State var uuid = UUID() on HomeView and override that variable with new one whenever user change appearance from ProfileView with callback func.

Note: I'm trying to capture video to upload.

uy avatar Nov 28 '23 19:11 uy

https://www.youtube.com/shorts/q2QJsUTHGZs

uy avatar Nov 30 '23 18:11 uy