Nov 5 · 1 min read
Why are you using Binding instead of State for the width? I don’t see what input binding should be given to PreferencesTest..?
I am trying to run this in Playground and when using `@State` for the `width` instead of Binding, I can do
`PlaygroundPage.current.liveView = UIHostingController(rootView: PreferenceTest())`
but it’s not rendered properly, plys this is shown in console:
`=== AttributeGraph: cycle detected through attribute 42 ===`
I did check and it does go through the onPreferenceChanged and re-calculates correctly, but re-render does not happen
