Overlays
For AI agents: this page is Markdown at https://squiggle.sh/docs/studio/overlays.md. Every docs page is listed at https://squiggle.sh/llms.txt, and all of them are one file at https://squiggle.sh/llms-full.txt.
An overlay draws what Squiggle knows about your app on top of the simulator: which components keep rendering, where every control is, what the accessibility tree contains, or where people tap.
Pick an overlay
Choose one from the Overlays menu in the device panel.
- No overlay
- The plain screen, for demos and screenshots.
- Renders
- Each component outlined as it re-renders, coloured by how often it does, the same colours as the Inspector. On device in the Inspector’s Renders tab turns it on from there.
- All bounds
- The outline of every component Squiggle can place.
- AX tree
- The live accessibility tree, with each element’s bounds and label. Flows look here for what React didn’t draw, so a control missing from this overlay is one a flow can’t name.
- Heatmap
- Every tap as a blob that grows with repeated taps, and every swipe as an arrow. See Heatmap.
- Layout at any size
- Where each control with a testID would be at another window width or text size, drawn as you drag, without touching the device. See See a screen at any size.
See a screen at any size
Layout at any size draws the current screen at any window width from 320 pt to your device’s, and at any of the twelve text sizes, as fast as you drag. It works out where each control goes from the screen’s layout, so the device does nothing while you drag. The ticks on the width control are the widths where the layout jumps, such as a label wrapping (red), or starts to change differently (blue). A line on the screen marks the window’s edge when it is narrower than the device.
The overlay needs the screen’s layout, which Squiggle captures when a flow on that screen runs with --matrix --predict(or --matrix --repair), or when an agent asks what_if a layout question. Until then it says so. Squiggle keeps the newest capture of each screen, in the project’s .squiggle/layout folder, and only for an app the project declares.
squiggle flow layout-lab --matrix --predictVerify lays your app out at the chosen width for real, draws what it measured in green beside the prediction, says how many controls landed within a point of it, and puts your app back. It measures at the device’s own text size: to check another, change the text size in the device panel first. It needs a debug build of your app with Squiggle’s touch capture on (the default).
Draw on the Simulator app instead
Native overlay draws the same outlines on the real Simulator app’s window, in a see-through layer that clicks pass through. Use it when you work in the Simulator app and still want the overlay. It hides itself when another window covers the simulator.