Auto Layout provides extensive customization options for structuring layouts, ensuring both functionality and aesthetic appeal. These properties include resizing, direction, layout alignment, and advanced settings.
Resizing properties control how child layers and their parent containers adjust in response to content or layout changes. These settings can be applied individually for Width and Height using the dropdown menus in the right panel. Hovering over a resizing option highlights its effect on the canvas.
Keeps an object’s size constant, unaffected by changes to its content.
Adjust the parent container’s size to fit its children while accounting for the padding sizes.
Stretches child objects to match the size of the parent container.
When the Fixed option is set for either width or height, the parent frame retains its absolute size regardless of any resizing of the child layers.
When the Auto Layout (AL) parent is set to Hug, the parent frame dynamically adjusts its size to perfectly fit the dimensions of its child layers.
When a child is set to FILL, its size adjusts to fill the available space within the parent’s dimensions, making it relative to the parent’s size.
Direction properties define how child objects are arranged within an Auto Layout container, providing flexibility in structuring layouts for various design scenarios.
Aligns child objects in a vertical stack.
Aligns child objects in a horizontal row.
Moves objects to a new row or column when the container runs out of space.
Layout properties offer granular control over child layer Alignment, Padding, and Gap within an Auto Layout container. These settings ensure a polished and consistent design.
Determines how child objects are positioned within the container (e.g., Top-Left, Center, Bottom-Right).
Defines the space between the container’s edges and its child objects.
Sets the spacing between child objects, adjustable as fixed or dynamic.
When a container without Auto Layout wraps a child container with Auto Layout, specific interactions occur depending on vertical or horizontal constraints.
If the Auto Layout container has Top & Bottom (T+B) or Scale assigned to it, the Auto Layout container’s height must be Fixed. Changing the Auto Layout container back to Hug resets the vertical constraints to Center.
When the Auto Layout container has Left & Right (L+R) or Scale assigned to it, the Auto Layout container’s width is set to Fixed. Adjusting the Auto Layout container to Hug resets the container’s horizontal constraints to Center.
These adjustments ensure a logical interaction between Auto Layout and non-Auto Layout containers, offering a predictable workflow.
Auto Layout also provides additional advanced settings to enhance layout flexibility and customization. These options allow you to tailor specific elements and behaviors within your design.
The "Ignore Auto Layout" feature allows you to bypass auto layout rules for selected objects, enabling manual adjustments without affecting the overall container structure. Objects set to ‘Ignore Auto Layout’ can independently set constraints, providing flexibility for unique layout scenarios while maintaining the auto layout properties of other elements in the container.
Managing stacking order is made simple with multiple options:
- Layer Panel: Drag layers directly in the panel to reorder them.
- Keyboard Shortcuts: Adjust stacking order using arrow keys for precise layer control.
- Mouse Interaction: Click and drag objects on the canvas to reposition them interactively.
Instances of components with Auto Layout support selective adjustments, allowing flexibility without altering the master component.
- Resizing: Modifications to resizing values are limited to existing options; new fixed values cannot be added.
- Alignment, Gap, and Padding: These properties are customizable within instances.
- Direction: Directional changes are not supported in instances.