I have a nested component system, where I swap out inner components for different content. These inner components have different heights.
Every single element in the structure of the components has an Auto-Layout, and they all are set to “Hug” (the height is defined within the innermost-level component). However, when swapping out the content component, its height property is always changed to “Fixed”.
I checked every element, and all of them are set to “Hug”.
Only once I swap the nested component, “Hug” changes to “Fixed”.
It is changed with the swapping of the component, no matter what component I swap in. Manually re-changing the property to “Hug” fixes the issue, and I can from then on swap out the content, and “Hug” works & persists.