Swirl
Art app · from our videos on X
Swirl is a painter's palette tray with glossy blobs of paint and a white ceramic dish of water. Drag the brush through the water and the paint washes off it as ink that blooms, rolls into mushroom-shaped curls and keeps drifting, driven by a real-time fluid simulation on the GPU. Keep stirring and the curls smear into marbling until the whole dish is evenly tinted. Tap a blob to load that colour and mix it in: red into blue turns purple. An ivory pencil follows your finger, Fresh water drains the dish and refills it clean, and the photo button shares a snapshot of the dish.
- iPhone · Swift
- Built in 1 prompt
- Free to remix

Remix copies the working app into your account for free, exactly as we built it. It runs in Vibecode's cloud iOS simulator, in your browser.
Watch the video on X@ios_app_builder · Dec 2, 2026The prompt that builds it
We built Swirl in one prompt. Paste it into a new app to build your own copy, or change it first.
Prompt · 1,392 words
Download/reference the app shown in this post and clone it exactly, including the visual design, layout, interactions, animations, spacing, colours and all visible states. Make it functional and runnable in the simulator. Match the reference as closely as possible and include any interaction shown in the source. Reference: https://x.com/avstorm/status/2127759775127716287 (AltoPaint's paintbrush-cleaning water cup). The reference is a 9.6-second video of an iPad filmed at an angle while an Apple Pencil dips blue paint into the water cup on the paint palette; everything it shows (the palette, the dish, how the ink blooms, curls and mixes) is written out below, so build from this brief. Build a native SwiftUI iOS app named Swirl using Opus 5.5, for iPhone in portrait. It is one screen: a painter's palette tray with blobs of paint and a white ceramic dish of water. When you drag your finger (a brush) through the water, the paint on the brush releases into the water as ink that blooms, curls and swirls like real ink in water, driven by a real-time 2D fluid simulation. Stirring more mixes it until the whole dish is evenly tinted. Do NOT put a fake handset frame inside the app; the simulator provides that. No permissions, no network, no backend. THE SCREEN (match the reference, seen straight on instead of at an angle) - Edge-to-edge palette tray, ignoring safe areas: a soft warm light grey #DCDBE0 surface with a very subtle top-to-bottom gradient (#E2E1E6 to #D4D3D9) and a raised rim: a 14 pt bevel all round the screen edge with a soft inner shadow and a thin highlight, like the inside of a plastic paint tray. Light status bar style is dark text. - Along the top edge, inside the rim, a row of 5 white rounded "pills" (brush slots), 56 x 18 pt each, with tiny grey separators between them. - Paint blobs on the tray (top ~38% of the screen), each an organic, slightly glossy blob of thick paint with a soft darker edge and a tiny specular highlight: ultramarine blue #2433C8 (top-left, elongated), navy #13234F (below and right of it, a lumpy horizontal blob), green #0E7A3A (centre), brick red #8E2A1C (right, round), and a small black #151820 blob at the far right edge. Between them, the faint used smears of an old palette: two small peach-orange dabs #E9775A on a faint pale smear at the left, two very light grey smears (like dried white paint) in the middle row, and a dark charcoal scribble #1E2633 at the left under them. They are static decoration except that tapping a paint blob loads the brush with that colour. - The water dish, the star of the app: centred horizontally at about 56% of the screen height, outer diameter 86% of the screen width. It is a white ceramic saucer: a broad flat outer rim (#F4F4F6 with a soft bevel, a bright highlight on the upper-left and a slightly darker lower-right edge), a second thin inner step ring, then the water. The water is clean pale blue-grey #CFDCDE with a very faint darker ring at the edge (meniscus), a soft curved reflection highlight along the upper-left inside the rim (a bright, slightly blurred crescent), and a soft drop shadow under the whole dish on the tray (offset down-right, ~18 pt blur, 22% black). - Bottom-left corner: two soft white round buttons on the tray, 64 pt diameter, slightly raised with a soft shadow: a photo icon (SF Symbol "photo.on.rectangle", dark grey) and a "···" button (three dark dots). THE BRUSH (the original shows an Apple Pencil, so draw one) - A finger leaves nothing visible on screen, so draw the tool: an ivory Apple-Pencil-like stylus (matte #ECE8DF body with subtle cylindrical shading, a conical sharpened tip that ends in a small darker point) whose tip sits exactly at the touch point and whose body extends toward the upper-right at about 35 degrees from vertical, going off screen. Under it, a soft blurred shadow on the surface offset down-left. On touch-down it fades and scales in over 0.12 s; it follows the finger 1:1; on lift it slides up-right and fades out over 0.2 s. The very tip is tinted with the brush's paint colour while the brush is loaded. THE INK IN THE WATER (this is the signature effect) - Implement a real 2D fluid simulation on the GPU with Metal compute shaders (stable fluids: semi-Lagrangian advection of velocity and dye, vorticity confinement, Jacobi pressure solve with 20-30 iterations, divergence-free projection) on a 256 x 256 grid covering the water disc, with solid circular walls at the dish edge (no-slip, so swirls roll along the rim). Render it in an MTKView inside the dish's water circle at 60 fps. - Dragging inside the water adds a splat of velocity along the drag direction (radius about 5% of the water diameter, strength proportional to the drag speed) and, while the brush carries paint, a splat of ink of the brush colour along the path. Use strong vorticity confinement (around 30) so a single stroke rolls up into big curls and mushroom-shaped eddies within 1-2 seconds: a quick zig-zag stroke from the right side of the water becomes a ribbon of ink that curls into two large swirls with feathery, wispy edges, joined by a thinner ribbon along the rim. - The ink keeps drifting and slowly turning for several seconds after the brush leaves (velocity dissipation low, about 0.4% per frame), slowly feathering out (dye dissipation almost zero: ink never disappears, it only spreads and dilutes). - Ink looks like transparent watercolour in water, not paint on top: composite it subtractively over the water colour (result = water * mix(1, inkColour, density) with density clamped), with dense centres a rich ultramarine (#3A4AD0 for the blue) and thin wisps a pale lavender-blue, plus a very slight soft edge so it reads as ink suspended in water. - The brush starts loaded with the ultramarine blue, so the very first dip releases a strong blue. The brush's load drains as it moves through the water (the paint washes out over about 1.2 s of stirring), so a second stir releases only a little more colour and mostly mixes what is already there: circular stirring smears the curls into marbled streaks and then into evenly tinted pale periwinkle water (#A7B0E6) with only faint lighter marbling. - Every touch in the water also makes a soft ripple ring on the surface (a slight refraction wobble that expands and fades over 0.6 s), and the reflection highlight stays on top of the ink. - Tapping a paint blob loads the brush with that colour (a little dab of paint jumps to the brush tip, light haptic). Dipping it then releases that colour, and colours mix in the water (blue then red goes purple). - The "···" button opens a menu: "Fresh water" (the tinted water drains away over 0.6 s and the dish refills clean, brush reloaded with blue), "Load blue". The photo button shares a snapshot image of the dish through the share sheet. FILMING HOOKS (needed: the simulator can only send straight-line drags) - URL scheme swirl:// . swirl://reset gives clean water with zero ink, zero velocity, and the brush loaded with ultramarine blue, instantly. - swirl://stroke?p=<points> replays a brush stroke through exactly the same code path as a finger drag, with the brush drawn: points are separated by ";" and each point is "x,y,t" where x and y are in water coordinates (0,0 = top-left of the water circle's bounding square, 1,1 = bottom-right) and t is seconds from the stroke start. Interpolate smoothly (Catmull-Rom) between points at 60 fps. Example: swirl://stroke?p=0.85,0.55,0;0.55,0.70,0.3;0.70,0.45,0.6 . The brush touches down at the first point and lifts after the last one. Several strokes can be queued and play one after another. QUALITY - Build it in small source files, in this order: the palette tray and blobs, the dish, the Metal fluid simulation (one .metal file of compute kernels plus a small Swift renderer), the brush and touch handling, then the menu and URL hooks. Keep SwiftUI types simple and split complex view bodies so the compiler does not time out. Build fully, run compile/build validation, resolve all errors, and launch in the web simulator. Prioritize fidelity to the reference and functional main interaction flow. Deliver complete implementation rather than a plan.
More templates
All templates- View template

Apple Home Clone
iOSThe iPhone Home app: live cameras, the big brightness slider, scenes, locks and a draggable thermostat dial.
- View template

Wrap a Book
iOSWrap a book like a gift, then pull the bow and tear the paper off strip by strip until the cover shows.
- View template

GoWish Clone
iOSA GoWish-style wishlist: shared lists, secret gift reserves, Cyber Monday price drops and add-from-any-link.
- View template

Globes
iOSPoint your camera at anything and seal it in a 3D glass snow globe, then shake it to make it snow.



