PadCodedocs

Background

A color, gradient or views drawn behind it, optionally in a shape like a circle.

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

Group: Appearance · 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 “Background” and tap it. Its row opens under All modifiers, with its settings.

#Settings

SettingWhat it does
StyleThe color, gradient or frosted material behind it.
ShapeThe shape to fill, like Capsule (a pill) or Circle; empty fills the whole area. Button Border, Text Input Border and Role aren't drawn yet.
AlignmentWhere the views behind it sit when they're smaller than it, like top left or center.
ColorA ContentBuilder that you use to declare the views to draw behind this view, stacked in a cascading order from bottom to top. The last view that you list appears at the front of the stack.

#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