When Hovered
Runs actions when a trackpad pointer or Apple Pencil hovers over it, and again when it leaves.
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 Hovered” and tap it. Its row opens under All modifiers, with its settings.
It's the same as choosing When Hovered in the Actions tab: When a trackpad pointer or an Apple Pencil hovers over the view, and when it leaves. See Triggers.
#Settings
| Setting | What it does |
|---|---|
| Perform | The actions to run, each time it starts and stops hovering. |
#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.