Its so dumb

Reply to this note

Please Login to reply.

Discussion

meanwhile I was looking into using something other than tab view and checking filter states. you know, something more logical 😂😭

I don’t understand this id thing in SwifitUI. It resolved my compilation issue once when the Toggle views were repeatedly placed

Usually state switching issues like this is resolved with .id(), for some reason even this had no effect with the tab switching bug.

Interestingly doing UUID() ids worked, but those would force a redraw of the entire view (maybe because the uuids would change when re-rendering the parent view). TabView is caching the views somehow. So it’s definitely id related. There Might be a better fix somehow.