Smart resizing allows you to determine how certain layers or groups should behave when you resize the Symbol or group those layers are in.
For example, you may want a layer to always stay in the middle of a Symbol—or a group to stay in the top-left corner—no matter how tall or wide an object is. With the smart rules you can apply to layers, this is now possible.
You can resize a Symbol instance just as you would with any other layer or group—by clicking-and-dragging the resize handles. However, you can apply resizing rules to layers inside your Symbol to allow smart resizing.
When creating or editing a Symbol, you can define the behaviour of its layers when you later resize the Symbol’s instance. Outlined below are four resizing rules which can be applied to layers via the Inspector or respective keyboard shortcut:
- Control-1: Stretch. Resizes the layer and maintains the layer’s original position. This is the default behavior.
- Control-2: Pin to corner. Automatically pins the layer to the nearest corner and does not resize if changes are made.
- Control-3: Resize object. Will resize the layer when its parent group is resized. This is optimal when you want the relationship between layers to stay the same, no matter the size, as in creating icons.
- Control-4: Float in place. The layer does not resize, but its position’s percentage is maintained.
These resizing rules are not just limited to Symbols, but can also be applied to regular group layers too.
With any of these resizing rules applied, you will then need to resize the Symbol instance, or group via the Canvas or Inspector. If you have resized a Symbol instance, and you would like to set it back to its original size, Control-click the instance, and choose Set to Original Size from the shortcut menu.
To see how these smart rules affect Symbol instances, try out our in-built iOS UI Design template, and resize any of the Symbol layers. This resource can be found by choosing File › New From Template › iOS UI Design in the menu.