#Component Instance Variable Property, Swap, Autoframe Fill Question?

5 messages · Page 1 of 1 (latest)

acoustic gate
#

Using figma, I've setup a component, I'm using the instance swap property, the instance swap variable is inside an auto frame in the component, after creating an instance of the component, I'm wanting whatever component I set to the instance property to automatically fill width and height, is this possible?

Thank you.

#

Some images to help portray what I'm attempting to ask.

#

Main component, I'm wanting to swap out placeholder content, and have whatever I swap to automatically fill the autoframe.

acoustic gate
#

I think I solved it, setting up constraints seems to have got it working well now.

frail needle
#

Hey @acoustic gate ! With autolayout you can do it by doing this (clicking on the fixed thing on the top right)