The Library
Find a component, see what it is, and add it to your screen by tapping or dragging.
The Library is the left panel of the Builder. Its Components tab holds every component you can put on a screen, as tiles grouped by section. Tap a tile to add it, or drag it to exactly where you want it.
The panel has four more tabs, covered on their own pages:
| Tab | Shortcut | Read more |
|---|---|---|
| Layers | ⌘2 | Layers |
| Screens | ⌘3 | Screens |
| Assets | ⌘4 | Images, colors, fonts and files |
| Data & Logic | ⌘5 | Variables, secrets, reusable actions and permissions |
Components itself is ⌘1.
#The sections
Below the search field come My Components, your own saved designs, and then every component in ten sections:
| Section | Components |
|---|---|
| Text | Text, Label, Text Field, Password Field, Text Area |
| Controls | Button, Switch, Slider, Stepper, Picker, Date Picker, Multi-Date Picker, Color Picker, Menu, Web Link, Share Button, Paste Button, Edit Button |
| Status | Progress Bar, Loader, Gauge, Empty State |
| Layout | Column, Row, Layers, Long Column, Long Row, Grid, Grid Row, Gallery Grid, Sideways Grid, Spacer, Divider, Best Fit, Scroll Area, Group, Box, Button Group, Form, Section, Labeled Value, Glass Group, Adaptive Pair |
| Lists & Data | List, Repeater, Tree, Expandable Section |
| Navigation | Page Stack, Sidebar Layout, Page Link, Tabs, Tab |
| Images & Media | Image, Web Image, Video Player, Photo Picker, Web Page |
| Shapes | Rectangle, Rounded Rectangle, Custom Corners, Capsule, Circle, Oval, Concentric Rectangle, Container Shape |
| Color & Gradients | Color, Linear Gradient, Radial Gradient, Angular Gradient, Elliptical Gradient, Mesh Gradient |
| Maps & Charts | Map, Chart, Location Button |
Each component has its own page, with every setting: see Components.
#Search
Type in Search components to narrow the tiles down as you type. A component matches when its name or its description has your words in it, so "slid" finds Slider, and also Page Stack, whose description says pages slide in. Its SwiftUI name, shown on its info card (like VStack for Column), matches too.
Sections with no matches hide. Tap ✕ in the field to clear it. ⇧⌘L jumps to the search field from anywhere in the Builder.
#Add a component
#Tap it
Tap a tile, and the new view goes in next to what's selected:
- A container is selected (a Column, a Row, a Box…): it goes inside, at the end.
- Any other view is selected: it goes right after that view, in the same container.
- A Picker or a Menu is selected: it goes right after it too. The views inside a Picker or a Menu are its options, which you only see when it's open, so to add one there, use Inside on its ⓘ card.
- Nothing is selected: it goes at the end of the screen.
The new view is then selected, so its settings are open in the Inspector. Unless it's a container, the next tile you tap goes right after it: tapping tile after tile builds a screen from top to bottom.
#Drag it
Touch and hold a tile, then drag it onto the canvas. As you move, a line shows where it will land: above or below the view under your finger (left or right of it, in a Row), or inside a container, which lights up. Let go to drop it there.
You can also drop a tile on a row in the Layers tab. See Layers.
#Choose exactly where
The card that ⓘ opens (see below) has buttons that add the component at a spot you pick:
| Button | Where it goes | Shown when |
|---|---|---|
| Inside | At the end of the selected container | A container is selected |
| Above | Right before the selected view | A view is selected |
| Below | Right after the selected view | A view is selected |
| At the end | At the end of the screen | Always |
#What a component is: ⓘ
Every tile has an ⓘ in its corner. Tap it for the component's card:
- its name and what it's for, in a sentence;
- a preview of how it looks when you add it;
- the Inside, Above, Below and At the end buttons;
- Read the docs, which opens its page on padcode.dev.
The selected view's ⓘ, at the top of the Inspector, opens the same card.
#Pro components
PadCode Free has the 19 essentials: Text, Label, Text Field, Button, Switch, Column, Row, Layers, Spacer, Divider, Scroll Area, List, Repeater, Image, Rectangle, Rounded Rectangle, Circle, Capsule and Color. Every other component is part of PadCode Pro.
On Free, a Pro component's tile has a PRO badge, is dimmed, and can't be dragged: tapping it shows why it's Pro, with the free trial, instead of adding it. Its ⓘ card has Unlock with Pro in place of the buttons that add it. With Pro, every tile works the same and none has a badge. See Plans and billing.
#My Components
My Components, at the top of the tab, holds designs you've saved to reuse: in this app and in every other. Tap or drag one in, like any tile. Until you've saved one, it explains how: select views, then choose Save as Component… from the ⋯ menu.
Touch and hold a saved component to Rename…, Share (as a .padcomponent file) or Delete it. Read more in My Components.
In a widget's Builder, the Library shows only what a widget can draw. Text fields and text areas, pickers, sliders and steppers, menus, share, paste and edit buttons, lists, forms and scroll areas, page stacks, tabs and page links, the video player, photo picker, map, location button and web page aren't there. See Widgets.