I have a component that is an auto layout. I would like to add an auto layout even earlier but I can’t do that. I could make an auto layout inside the component but I would have to copy all the settings of the first one into the new auto layout and then delete them from the initial one.
Hi @Samanta, Thank you for reaching out about this!
It seems like a feature request, but I’m not entirely sure. You can add auto layout to a frame or a selection of objects. This includes components and component sets. You can find more information here: Add auto layout to a design
Could you kindly give us further information? What exactly does “At the first level” refer to? If possible, could you share screenshots or a video demonstrating this? This would greatly assist us in determining if it is a feature request or not functioning correctly.
Looking forward to hearing from you soon! If I misunderstood anything, please feel free to let us know.
We also welcome any suggestions or insights on this matter.
Thanks again for reaching out.
Hi Junko,
Thank you so much for replying! My problem is to add an auto layout to the highest level of a component. Download the video here. As you will see in the video my component is an auto layout with features (16px margin and gap, 8px rounding and white background). I cannot create an auto layout that includes this auto layout. As you see in the video I had to create an auto layout “below” and bring back all the features and delete them from the one above. I don’t know if I explained myself.
Thanks again for your attention
Hi there, I appreciate you sharing the video! Does the highest level of component refer to the top level frame of the variant?
In that case, I observed that you selected the “XL, 4C, gran formato, false, 16x9” variant and it appears that auto layout has already been applied.
Also, when you select the nested layer “Frame 17549,” it seems that the auto layout has already been applied to that layer as well.
Which layer are you looking to apply auto layout to? If you wish to copy and paste properties, including auto layout properties, you can try using Copy and paste properties between layers
I don’t think I fully understand what the expected behavior is for you yet. However, I hope this provides some clarity. Please let me know if I have misunderstood any details.
If any members of our community have any ideas or recommendations, don’t hesitate to share.
Hi Junko,
I’m sorry I couldn’t make myself understood. I try to make a video in another way to make me understand better. My problem is that I would like to add an extra autolayout, but it is tedious for me to copy, paste the autolayout features to the new one I make and delete them to the main one.
As you see in the video I would like to add an autolayout to the main component and add a margin-top of 24px. I can’t do this work inside the component though. I can do it outside the component but the margin-top I add is not part of the component. In fact, when I try to add an auto-layout (cmd+a) in a component set, I cannot do it. See the video
Hello @Samanta, I’d like to thank you for responding and for sharing the additional video!
When you apply auto layout on a component, it will create an auto layout frame around it as you have seen. However, after testing, we have found that there’s no way to integrate this auto layout frame into the component.
In such a scenario, you may have to create an additional component with the auto layout frame and use swap component to update the current instances.
I understand that it will involve a lot of manual effort, but selecting multiple layers might help reduce the amount of manual work required.
I hope this clarifies things a bit. If I have misunderstood anything, please feel free to let us know.
I believe there are designers in this community who have faced similar challenges. If anyone from our community have any insights or workarounds for this situation, please feel free to share them!