Variants in nested components do not change size

Hey All,

As @AlicePackard mentioned, this is a known limitation where swapping or changing the state on nested instances does not change the instance size. Our engineers are working on long term fix for this, but as it would impact the behavior of existing autolayout frames, it will likely be some time before this improvement is added.

For now, if you add auto layout to each state of your set and assign the correct constraints you should be able to swap and see your frames correctly resize. Where elements are stacked on top of one another (eg. the states with images) you’ll need to apply Absolute position to the element sitting on top as explained in Explore auto layout properties.

1 Like