When Loading
Runs actions when it appears, like loading data, and stops them if it leaves first.
Group: Input and event · 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 “When Loading” and tap it. Its row opens under All modifiers, with its settings.
It's the same as choosing When Loading in the Actions tab: When the view appears; stops if it disappears before finishing. The right place for API calls. See Triggers.
#Settings
| Setting | What it does |
|---|---|
| Run Again When | Link a variable to run the actions again each time it changes, like a search word. |
| Action | The actions to run, like a call to an API. Edit them in the Actions tab. |
#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.