PadCodedocs

Padding

Empty space around its content, like 16 points on every side.

Padding added to a view, with its row open under All modifiers.

Group: Layout · Works on: Every view

#Add it

Select the view, open the Inspector's Style tab, open All modifiers at the bottom and tap Add modifier. Search for “Padding” and tap it. Its row opens under All modifiers, with its settings.

#Settings

SettingWhat it does
SidesWhich sides get the space: all, top, bottom, left, right, horizontal (left and right) or vertical (top and bottom).
AmountHow much space, in points, like 16. Empty uses the standard amount.

#Change, move or remove it

Tap the modifier's row under All modifiers to open or close its settings. Its ⋯ menu has Move Up, Move Down and Remove.

Order matters: modifiers apply top to bottom, so padding before a background makes the background bigger.

#See also