The Inspector
The right panel: a view's settings in Style, its steps in Actions, and the data it uses in Data.
The Inspector is the panel on the right of the Builder. It shows everything about the view you selected: how it looks (Style), what it does (Actions) and the data it reads and changes (Data). With nothing selected, it shows the screen's own settings.
#Open it
Select a view on the canvas or in Layers, and the Inspector shows it. Tap the empty canvas around the device, or press Esc, to select nothing and see the screen instead.
To make room for the canvas, tap the hide button at the top right of the Inspector. Bring it back with Show right panel in the toolbar, or press ⌥⌘0.
#The header
| Part | What it does |
|---|---|
| Name | The view's name, shown in Layers too. Type to give the view a name of its own, like "Total label"; until you do, the box shows the component's name in gray. Clear it to go back to the component's name. |
| Kind | Under the name: which component this is, like Button. |
| ⓘ | What this component is: a short description, a preview of how it looks when added, buttons to add another one (Inside, Above, Below or At the end), and Read the docs, its page on padcode.dev. |
| ⋯ | The arrange menu: Rename, Copy, Cut, Paste, Duplicate, Save as Component…, Wrap in, Unwrap, Move Up, Move Down and Delete. |
| Hide button | Hides the Inspector. |
Wrap in puts the view inside a new Column, Row, Layers, Scroll Area, Box or Group. Unwrap does the opposite for a container: it puts what's inside where the container was. See Laying out views.
#The three tabs
| Tab | What's in it | Shortcut |
|---|---|---|
| Style | How the view looks and sits on the screen: its own settings, then sections every view shares, then every modifier. | ⌥⌘1 |
| Actions | What happens when people use it: pick a trigger (When …) and the steps that run, in order. See How steps run. | ⌥⌘2 |
| Data | The variables the view changes, repeating it for each item in a list, and the screen's inputs. See The Data tab. | ⌥⌘3 |
#Several views selected
Shift-click views on the canvas or in Layers to select more than one. The Inspector then says how many are selected, lists them, and offers what works on all of them at once:
| Button | Shortcut |
|---|---|
| Copy | ⌘C |
| Cut | ⌘X |
| Duplicate | ⌘D |
| Save as Component | ⇧⌘S |
| Delete | ⌘⌫ |
When the views sit side by side in the same container, Group into… puts them all in a new Column, Row, Layers or Box.
#Nothing selected: the screen
With nothing selected, the header shows the screen's title (type to rename it) and the Style tab shows the Screen section:
| Setting | What it does | Choices |
|---|---|---|
| Appearance | Whether this screen is dark or light. Auto follows the iPad's own setting. | Auto, Dark, Light |
| Background | The screen's background color. | Color menu or color wheel |
| Accent | The color of the controls' active parts, like a switch when it's on. | Color menu or color wheel |
| Text color | The color every text on this screen uses unless it sets its own. | Color menu or color wheel |
| Font style | The letter shapes every text on this screen uses unless it sets its own. | Default, Rounded, Serif, Monospaced |
Accent, text color and font style are defaults: every view on the screen uses them unless it sets its own. Under the Screen section, All modifiers lists the screen's modifiers.
#The Style tab
The Style tab lists sections from top to bottom. A view shows only the ones that fit it:
- Its own section, named after the component (Button, Column, Slider…): the settings only this kind of view has. An Image has an Image section instead, to pick a photo or a symbol.
- An extra section for a few components: Map, Chart, Opens (a Page Link's screen), Mesh Gradient, and Validation for a Text Field or Password Field.
- Shape, for shapes like Rectangle and Circle.
- Text, for views that show text.
- Size & spacing, for every view.
- Look, for every view.
- Control, for buttons, switches, pickers and other controls.
- Show & enable, for every view.
- All modifiers, for every view.
Tap a section's title to close it or open it again.
#Help for each setting
Most settings have an ⓘ next to their name. Tap it for a short explanation of what the setting does, often with an example.
#The component's own settings
The first section holds what makes this component what it is: a Text's words, a Switch's variable, a Column's spacing. Each setting gets a control that fits it:
| Control | Used for |
|---|---|
| Text box | Words and web addresses. Put a variable in braces to show its value: Hello, {name}! See Text with values. |
| Number box | Sizes, spacing and amounts. Empty means not set, so PadCode or iOS chooses. |
| Switch | On or off settings. |
| Menu | A choice from a list, like an alignment. |
| From and To boxes | A range, like a slider's lowest and highest value. |
| Icon field | An SF Symbol. Tap it to open Choose an Icon and search by meaning, like heart or cart. |
| Color | A color menu and color wheel. |
| Variable menu | The variable a control changes, like a Switch's on or off. See Variable menus. |
| Add actions › | Shown for a setting that runs steps, like a Button's Action. It counts the steps (1 action ›, 3 actions ›) and opens the Actions tab. |
Some text boxes check what you type and say what's wrong under the box, like a web address that doesn't start with https://. See Text field rules and limits.
A Picker also lists its Options here: type each choice, tap Add option for another, or tap ⊖ to remove one.
#Made of
Many components come in more than one version: a Button with only text, with text and an icon, or with your own views inside (Custom content). The Made of menu, at the top of the section, switches between them.
When you switch:
- Settings both versions have keep their values. A button's title stays the same when you add an icon.
- Settings the new version needs get a starting value.
- Settings the new version doesn't have are removed.
- Switching a button to Custom content turns its title into a Row holding that text, so you can add an icon or a Loader beside it.
- Switching a Slider, Gauge or Progress Bar to a version with End labels or a Value label adds a Text for each. Select one to change its words, or put an icon in its place.
Only versions PadCode draws are in the menu, so whichever you pick changes the canvas.
#More settings
The section only has rows for settings PadCode draws. A view can still have a setting the canvas doesn't use or PadCode can't edit, like one set in an older version of PadCode. Those are listed, read-only, under More settings · N at the bottom of the section (N is how many). As the section says: "PadCode can't edit these here yet. They keep the value shown."
#Link a setting to data: the ⚡︎ button
Next to most of a component's own settings is a ⚡︎ button, Set from variable. It links the setting to data, so the view changes as the app runs. The ⚡︎ menu offers what's available where you are:
| In the menu | What it links to |
|---|---|
| App data | One of your variables, by name. |
| Screen inputs | A value this screen was opened with. Shown when the screen has inputs. |
| Repeater item | A field of the item being shown, like its title. Shown inside a Repeater whose list has items. |
| From this action | Inside a step only: a name the action gives you, like it in Repeat for Each's Do steps, or error.message in a Try's Catch steps. |
| Secrets | Only in a Call API step's headers: one of your secrets. |
| Formula… | Opens the formula editor, to work the value out, like price * quantity. |
| Remove Link | Shown once the setting is linked. Unlinks it. |
Once a setting is linked, its box turns into an orange chip that shows what it's linked to: a variable's name, a formula after ƒ, or a Repeater field like item.title. The ⚡︎ button turns orange too. To change the link, tap ⚡︎ and pick something else. To unlink, tap ⚡︎ and choose Remove Link.
Text with {braces} isn't a link: it stays a text box you can keep editing.
The formula editor starts with Describe it: say what the formula should work out in your own words and tap Write it, and PadCode's AI writes it for you (Pro; see Writing a formula from words). It shows the formula's result as you type (Right now: …), or what's wrong with it. Below the box are the names you can use (your variables, the screen's inputs, the Repeater item's fields), a card of examples under How formulas work, and every function. Tap any of them to add it to the formula, then tap Done. See Formulas and Formula functions.
#Variable menus
A setting that a control changes, like a Switch's on or off or a Text Field's text, picks a variable instead of a value. Its menu lists your variables and, at the bottom, New Value, which makes a new variable for it and links it. Until one is picked, it says Choose…. The same menus are in the Data tab. See Connecting views to data.
#Colors
Every color setting has two parts: a color menu, and a color wheel button next to it.
The color menu shows the current color and its name, or None. It offers:
- Asset Colors: your app's own named colors, from the Assets tab. Shown when the app has some. Each has a version for light and one for dark, and switches with the appearance. See Colors.
- Colors: Primary, Secondary, White, Black, Blue, Indigo, Purple, Pink, Red, Orange, Yellow, Green, Mint, Teal, Cyan, Brown, Gray and Clear. Primary and Secondary are iOS's own text colors, which follow light and dark mode.
- None: takes the color away. Shown when a color is set.
The color wheel opens iOS's color picker, for any color you like. The setting then shows the color's code, like #5B6CFF.
#Text
Shown for views that show text: Text, Label, Text Field, Password Field, Text Area, Button, Web Link, Switch, Stepper, Picker, Date Picker, Menu, Labeled Value, Share Button, Expandable Section, Box and Section, and any view that already has a font, font weight or text color.
| Setting | What it does | Choices |
|---|---|---|
| Font | The text style: Title, Headline, Body and so on. They grow with the size people set for text on their iPad. | Default, Large Title, Title, Title2, Title3, Headline, Subheadline, Body, Callout, Caption, Caption2, Footnote, Custom |
| Size | Shown when Font is Custom: the text's size in points. It starts at 17 and stays that size whatever text size people set. | Number |
| Typeface | The letters' design: System (San Francisco), any font on the iPad, or a font file you add to this app. | Opens the Typeface picker |
| Weight | How thick the letters are, from Light to Black. | Default, Ultra Light, Thin, Light, Regular, Medium, Semibold, Bold, Heavy, Black |
| Design | The letter shapes: Default, Rounded, Serif or Monospaced (every letter the same width). | Default, Rounded, Serif, Monospaced |
| Color | The color of the text. | Color menu or color wheel |
| Hint color | Text Field and Password Field only. The color of the hint shown in the field while it's empty. | Color menu or color wheel |
| Align | How the lines of a text line up: to the left, the center or the right. | Three buttons: left, center, right |
| Max lines | How many lines the text can use before it ends with “…”. Empty means no limit. | Whole number, or empty for No limit |
| Letter spacing | Extra space between letters, in points. A negative number squeezes them together. | Number |
| Case | Shows the text as typed, in UPPERCASE or in lowercase. The text itself doesn't change. | As typed, Uppercase, Lowercase |
| Bold, Italic, Underline, Strikethrough | Four buttons under the rows. Each turns its style on or off; a button that's on is highlighted. | On or off |
The Typeface picker shows every font in its own letters. This app lists System (San Francisco), the fonts you added to this app, and Add font file…; On this iPad lists every font installed on the iPad. Search at the top to find one. A typeface used with a text style like Body keeps growing with people's text size; with Custom, it stays the size you set. See Fonts.
#Size & spacing
Shown for every view. For how these fit together, see Laying out views.
| Setting | What it does | Choices |
|---|---|---|
| Padding | Empty space around the view, inside its background. One number for every side, like 16. | Number. Shows Mixed when the sides differ. |
| Sides | Padding for one side only: T is the top, L the left, B the bottom, R the right. | Four numbers: T, L, B, R |
| Width | Auto fits the content. Fill takes all the room it can. Fixed sets an exact size in points. | Auto, Fill, Fixed (starts at 120; type the number in the box beside it) |
| Height | Auto fits the content. Fill takes all the room it can. Fixed sets an exact size in points. | Auto, Fill, Fixed |
| Align | Shown once Width or Height isn't Auto. Where the content sits when the view is bigger than it, like top left or center. | Center (where it starts), Top Left, Top, Top Right, Left, Right, Bottom Left, Bottom, Bottom Right |
| Offset | Nudges the view X points right and Y points down, without moving anything around it. Negative numbers go left and up. | Two numbers: X, Y |
#Look
Shown for every view. Corners, background, border and Liquid Glass work together: change the corners and the others follow.
| Setting | What it does | Choices |
|---|---|---|
| Background | A color behind the view. Add Padding so it doesn't hug the content. | Color menu or color wheel |
| Corners | Rounds the background's corners, in points. 12 is gently rounded; a big number makes a pill. The border and Liquid Glass round with it, and anything inside is cropped to the rounded shape. | Number |
| Border | A line around the view, in the color you pick. Once it has a color, a box beside it sets how thick the line is, in points (1 to start). | Color menu or color wheel, then a number |
| Shadow | A soft shadow under the view, so it looks raised. When it's on, a Blur box sets how soft it is (12 to start); a softer shadow also sits lower. | Switch, then a number |
| Opacity | How solid the view is. All the way right is solid; all the way left is invisible. | Slider |
| Liquid Glass | Apple's glass look: the view blurs and reflects what's behind it. | Switch |
#Liquid Glass settings
Turning on Liquid Glass gives the view 12 points of padding if it has none (shapes excepted), and picks an outline that suits it: a pill for buttons, text and other small views, the view's own Corners if it has some, or rounded corners for bigger views. On a shape that has a fill color, the color becomes the glass's tint. Four more settings appear under the switch:
| Setting | What it does | Choices |
|---|---|---|
| Glass style | Regular blurs what's behind it; Clear stays see-through, for views over photos and video. | Regular, Clear |
| Tint | Colors the glass, like a stained window. Use it for the one most important control. | Color menu or color wheel |
| Reacts to touch | The glass bounces and shimmers when it's pressed, like Apple's own buttons. | Switch |
| Shape | The glass's outline: a pill, a rectangle with this view's Corners, or a circle. | Pill, Rounded, Circle |
To let glass views near each other blend together, put them in a Glass Group.
#Control
Shown for buttons, switches, sliders, steppers, pickers, text fields, menus, web links, and other views that come in more than one style.
| Setting | What it does | Choices |
|---|---|---|
| Style | The look iOS gives this control, like a filled or a plain button. Automatic lets iOS choose. | Automatic, then the styles this control has. A Button's are Bordered, Bordered Prominent, Borderless, Glass, Glass Prominent and Plain. |
| Accent | The color of the control's active parts, like a switch when it's on. | Color menu or color wheel |
| Size | How big the control is: small, regular, large or extra large. | Regular (where it starts), Mini, Small, Large, Extra Large |
#Shape
Shown for shapes: Rectangle, Rounded Rectangle, Custom Corners, Capsule, Circle, Oval, Concentric Rectangle and Container Shape. See Shapes.
| Setting | What it does | Choices |
|---|---|---|
| Fill | The shape's color. | Color menu or color wheel |
| Outline | A line around the shape's edge, in this color. | Color menu or color wheel |
| Outline width | Shown once the shape has an outline. How thick the outline is, in points. | Number (2 to start) |
#Show & enable
Shown for every view. It's closed at first, unless the view already has a Show when condition.
| Setting | What it does | Choices |
|---|---|---|
| Show when | A condition, like isLoggedIn or count > 0. The view shows only while it's true. Leave it empty to always show it. | A formula. Empty shows Always. |
| Disabled | Grays the view out so it doesn't respond to taps. | Switch |
If the condition has a mistake, like a variable name that doesn't exist, the problem shows under it in orange. On the canvas, a view hidden by its condition is drawn faded, so you can still select it and edit it. See Formulas.
#All modifiers
The last section, All modifiers · N, lists every modifier on the view, in order (N is how many). It's closed at first. Many of the Style tab's settings are modifiers under the hood, so they show up here too: set a Background in Look and a Background row appears. So do some triggers from the Actions tab, like When Tapped on a Text.
- Tap a row to open its settings, and again to close them. Under its name, each row sums up its value.
- ⋯ on a row has Move Up, Move Down and Remove.
- Add modifier opens Add Modifier: search, or browse by group, and tap one. It goes at the bottom of the list, open, with its settings.
- Not on canvas yet, in orange on a row, means PadCode doesn't draw that modifier yet. Add Modifier only offers modifiers PadCode draws.
Modifiers apply top to bottom: padding before a background makes the background bigger. Settings you change in the sections above put their modifier where it reads naturally, like padding before a background. If a view has two modifiers of the same kind, the sections above edit the first one. See Modifiers.
#The Actions tab
The Actions tab is where a view gets its steps. Tap the When card at the top to pick the trigger, like Tapped, then tap Add action to add steps under Do, in order. Tap a step to set it up; long-press it to move or remove it. Views that can't start actions say so. See How steps run, Triggers and All actions.
#The Data tab
The Data tab shows the data this view works with:
- This view: for a control, a variable menu for each variable it changes, like a Switch's Is On. For a Repeater, Repeat for picks the list it repeats over. For a container, Repeat → Repeat for each item… puts its views in a Repeater over one of your lists, or over a New List.
- Screen inputs: values this screen receives when another screen opens it, read as
params.name. Tap Add input to add one and type its starting value; tap ⊖ to remove one. - Variables, secrets, APIs & actions opens Data & Logic in the left panel, where your app's variables live.
See Connecting views to data and Variables.