I have an auto layout (inside a component) set to hug contents, containing two items.Each of these items can be hidden with a boolean component property.
When hiding either one of them, the auto layout behaves as expected, adjusting its width to that of the remaining visible object, but when both are hidden - it reverts to the initial width, as if all content within it was visible.
As a temporary workaround I have included a 0px object as well in the autolayout, but this feels like exactly the kind of hack the new updates is trying to remove.
Any ideas?