Robinhood Clone (Fletch)

Robinhood clone · Finance app · from our videos on X

Fletch is a Robinhood-style investing app built in SwiftUI. Drag a finger across the chart and the balance rolls, the date slides and the line greys out past your finger; tap 1D to ALL and the line morphs. Switch between Individual and Roth IRA, tap a pill to flip every price to percent, open a stock page with your position, stats and news, and buy with a number pad and swipe up to submit, finished with confetti. Every company and price is fictional and the market is simulated, ready to wire to your own data.

  • iPhone · Swift
  • Built in 1 prompt
  • Free to remix
Robinhood Clone (Fletch), finance app built with Vibecode
Remix this template

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@vibecodeapp · Dec 3, 2026

The prompt that builds it

We built Robinhood Clone (Fletch) in one prompt. Paste it into a new app to build your own copy, or change it first.

Prompt · 2,767 words

Build Fletch, a polished native iPhone app in SwiftUI: a Robinhood-style investing app with its own brand (Fletch: a code-drawn #CCFF00 rounded square with a heavy black up-right arrow). Black screens, one big balance, and a line chart you scrub with your finger: the number rolls, the date slides, the line greys out right of the finger. Plus accounts, stock pages, a buy flow with a number pad and "Swipe up to submit", Search with lists, and Account. Simulated market only: no network, real money, accounts or permissions. The user is Alex Rivera. Today is Thursday, December 3, 2026.

ASSETS
curl -L once and unzip flat: https://fletch-71b2.beacon.host/media.zip (fletch-icon.png: set it as the app icon). Every logo, thumbnail and chart is drawn in code. No image generation is needed.

SHELL
Opens on Home: no splash, onboarding, sign-in or permission prompts. Dark everywhere (force .dark); the status bar stays visible and white. Root = one ZStack: the TabView (Home, Search, Account), the overlay layer (the account menu, the order flow, the confirmation: views in this same ZStack, never sheets or fullScreenCovers), the toast, and the demo window (TouchDot + HOOK/TOUR strips) on top. When an overlay leaves, the screen under it is already rendered: never a black or blank frame.

FORMAT
One Money formatter with Locale(identifier: "en_US"): "$52,901.39", "+$412.18", "(0.79%)", "−96.4%", "+4,200%", "2.667788 shares", dates "OCT 14, 2026". The simulator's region is not en_US: never use the device locale.

SERIES (Data/Series.swift: one model for accounts, stocks and holdings)
Series: keypoints [(date, value)], wiggle (fraction, default 0.012), seed, prevClose, events [ChartEvent(date, label)]. It builds one point per day from the first keypoint to Dec 3, 2026: linear between keypoints plus a seeded smooth wiggle that is 0 on every keypoint, so keypoints and event days hit their values exactly. Ranges: 1D = 78 intraday points from prevClose to the last value (seeded wiggle); 1W, 1M, 3M, YTD (Jan 1, 2026 on), 1Y, ALL slice the daily points (a range starting before the first keypoint starts at it). Change = last − range start (1D: − prevClose). Range words: Today, Past week, Past month, Past 3 months, YTD, Past year, All time.

CHART (Components/LineChart.swift: the signature)
- 260 pt tall, full width (no margins); 24 pt top padding for the label row, 12 pt bottom. The line 2.5 pt, round joins, #CCFF00 when the range's change ≥ 0, #FF5000 when below. A dotted baseline (1 pt, white 30%, dash 1/4) at the range start (1D: prevClose). The last point carries a 7 pt dot in the line colour with a ring pulsing out (1.6 s loop).
- Scrub: a drag on the chart (minimumDistance 0) picks the nearest point under the finger. It draws a 1 pt white 35% vertical line at that x, a 9 pt dot in the line colour with a 2 pt black ring on the point, and the line RIGHT of the finger in white 22% (left of it keeps its colour). The label row shows the point's date (13 pt semibold caps, white 60%: "OCT 14, 2026"; 1D "10:45 AM"), centred on the finger and clamped 8 pt inside the edges. If an event is at or before that date and within 20 days, the label shows the event instead ("JAN 2 · Joined the gym 💪", 15 pt semibold white on a #1C1C1E capsule, 10/6 pt padding), the same size and place every time. The header's big number shows the scrubbed value and its change line the change from the range start to that point, the range word replaced by the date. Selection haptic on every event and every 8 points. Release: the scrub line and dot fade (0.15 s) and the header rolls back to the live values.
- Range change or account switch: the path morphs from the old points to the new (both resampled to 240 points, animatable, 0.35 s easeInOut) and the colour crossfades (0.3 s) if the sign flips. Never a redraw from empty.
- Numbers: the big value and the change roll with .contentTransition(.numericText(value:)) and .animation(.snappy(duration: 0.18)); monospaced digits so nothing jitters.

FIXTURES (Data/: ONE list per kind; a new account, stock or holding is one entry)
StockCatalog (symbol · name · logo letter on tint · shares · avg cost · keypoints · prevClose · events):
NOVA · Novalith Labs · N #5B3DF5 · 24 · $98.10 · 2025-12-03 $96.40, 2026-02-10 $112, 2026-04-21 $104, 2026-07-29 $151, 2026-09-02 $139, 2026-10-28 $176, 2026-12-03 $187.42 · $183.30 · Jul 29 "Q2 earnings beat", Oct 28 "Q3 earnings beat"
KITE · Kitewire Systems · K #0EA5E9 · 40 · $58.20 · 2025-12-03 $52.10, 2026-05-12 $61.40, 2026-09-30 $57.90, 2026-12-03 $64.18 · $64.91
BREW · Brewhaus Coffee Co. · B #A0522D · 55 · $21.05 · 2025-12-03 $19.80, 2026-06-01 $22.60, 2026-12-03 $23.90 · $23.70
ORBT · Orbital Freight · O #F97316 · 30 · $35.80 · 2025-12-03 $31.20, 2026-03-15 $36.90, 2026-08-20 $34.10, 2026-12-03 $41.07 · $39.64
DRFT · Driftline Motors · D #EF4444 · 18 · $230.10 · 2025-12-03 $248.00, 2026-04-01 $262.30, 2026-09-10 $201.70, 2026-12-03 $212.55 · $213.55
PAWS · Pawprint Pet Health · P #22C55E · 70 · $12.30 · 2025-12-03 $11.40, 2026-07-07 $14.10, 2026-12-03 $15.62 · $15.32
NOVA's page: About "Novalith Labs designs AI accelerator chips for data centers and phones." CEO Priya Anand · Employees 8,400 · Headquarters Austin, Texas · Founded 2014. Key statistics: Market cap 412.8B · P/E ratio 48.2 · Dividend yield — · Average volume 38.1M · High today $188.90 · Low today $182.15 · 52 Week high $191.20 · 52 Week low $88.40. News: "Bloomfield Wire · 2h · Novalith's new chip doubles AI speed per watt"; "Market Brief · 5h · Chip stocks rally into December"; "The Ledger · 1d · Why Novalith is analysts' top pick for 2027". Give every other stock plausible about, stats and three news items in the same style.
AccountCatalog (id · title · keypoints · prevClose · events · holdings · pill mode · buying power):
individual · "Individual" · 2024-12-03 $29,800, 2025-06-01 $33,950, 2025-12-03 $36,100, 2026-01-01 $38,420, 2026-03-10 $35,880, 2026-04-21 $41,240, 2026-07-15 $44,810, 2026-08-05 $43,090, 2026-10-14 $48,230, 2026-11-18 $47,310, 2026-12-03 $52,901.39 · $52,489.21 · Mar 10 "Bought the dip 📉" · NOVA, KITE, BREW, ORBT, DRFT, PAWS · price · $2,140.00
roth · "Roth IRA" · 2026-01-01 $14,200, 2026-04-08 $13,620, 2026-06-30 $15,900, 2026-09-15 $16,880, 2026-12-03 $18,240.55 · $18,144.45 · Apr 15 "Maxed out my IRA", Sep 15 "Rebalanced" · FLTX "Fletch Total Market ETF" (F #CCFF00, 61 shares, 2026-01-01 $198.40 → 2026-12-03 $226.75), GLBX "Globex World ETF" (G #6366F1, 80 shares, $54.10 → $61.02) · price · $500.00
Holding: a stock id, or a custom one built by Holding.simple(logo, symbol, name, from, to): an emoji or letter logo and a 2-keypoint series from Jan 1, 2026 (from) to Dec 3 (to). Lists on Home: "🚀 Moonshots" (NOVA, ORBT, DRFT), "☕ Morning picks" (BREW, PAWS).

SCREENS
1. Home: top row: the account title button ("Individual" 22 pt regular + chevron.down 15 pt, white) at the left; magnifyingglass and bell (20 pt) at the right. Under it the big value (40 pt medium) and the change line ("▲ $412.18 (0.79%) Today", 15 pt semibold, the line colour; ▼ when down). Then the chart, then range chips "1D 1W 1M 3M YTD 1Y ALL" (13 pt bold in the line colour; the selected chip a capsule filled with the line colour, black text), a hairline, "Buying power" row ($2,140.00, chevron), "Stocks" (20 pt bold) and one 72 pt row per holding, then "Lists" with the two lists (emoji tile, name, "3 items"). 120 pt bottom padding.
Holding row: logo (36 pt circle: a white letter on the tint, or the emoji on #1C1C1E), symbol 16 pt semibold over the shares label 13 pt #8E8E93; a sparkline (72x30, 1.5 pt, the row's colour, dotted baseline) for the Home chart's selected range; at the right the pill (84x34, 8 pt corners, filled #CCFF00 or #FF5000 by the range change, black 14 pt semibold: "$187.42" or "+2.25%"). Tapping any pill flips every pill between price and percent (a 0.2 s vertical roll). Account.pillMode sets the start. Row tap → the stock page.
Account menu: tapping the title drops a card under it (0.18 s spring, #1C1C1E, 14 pt corners, 300 pt wide, shadow): one 56 pt row per account (title 16 pt, value 16 pt at the right, #FF5000 when its YTD change is negative, a checkmark on the current one). Row tap → the switch: the menu closes, the title cross-slides (old up and out, new up from below, 0.25 s), the chart morphs, the value rolls, the colour crossfades and the holdings crossfade to the new account's rows (0.2 s). Tap outside closes. The Home chart opens on YTD.
2. Stock page (pushed): back chevron, a star (toggle, toast "Added to Moonshots") and ellipsis; the name (17 pt #8E8E93), the price (40 pt medium), the change line, the same LineChart and chips (opens on 1D), then "Your position" (a 2-column grid: Shares, Market value, Average cost, Portfolio diversity, Today's return, Total return; returns in the up/down colour), "About" (text + CEO, Employees, Headquarters, Founded), "Key statistics" (2 columns), "News" (rows: source · age 13 pt #8E8E93, headline 16 pt semibold, a 64 pt tile in the stock's tint with an SF Symbol). Past 120 pt of scroll the symbol and price fade into the nav bar. A bottom bar (black, hairline): the price at the left, a "Trade" capsule (#CCFF00, black 17 pt bold, 130x50) at the right. Trade → a bottom card with "Buy" (#CCFF00) and "Sell" (#1C1C1E) capsules.
3. Order (overlay, slides up 0.3 s): xmark, "Buy NOVA" (17 pt semibold); rows "Order type · Market order", "Buy in · Dollars"; "Amount" with the big entry ("$500", 56 pt medium, grows as typed); "Est. quantity 2.667788"; "Market price $187.42"; "$2,140.00 buying power available" (13 pt #8E8E93); "Review order" (#CCFF00 capsule, grey until the amount > 0); a 3x4 number pad (1-9, ".", 0, delete.left; 28 pt, 64 pt rows, a key flash on press). Review → the card shows the summary ("You are placing a market order to buy $500.00 of NOVA.") and "Swipe up to submit": a 64 pt #CCFF00 circle with a black chevron.up that follows the finger up; past 140 pt it submits.
4. Confirmation (overlay): a 120 pt #CCFF00 circle whose black checkmark draws in (trim, 0.35 s), "Order submitted" (28 pt), "Your market order to buy $500.00 of NOVA was placed." (15 pt #8E8E93), 36 confetti pieces (neon, white, gold; pure functions of seed and time, 1.2 s), "Done" (#CCFF00). Done → the stock page with the new shares and the toast "Order filled · 2.667788 NOVA at $187.42".
5. Search: a #1C1C1E field ("Search", magnifyingglass); list chips "🚀 Top movers", "🤖 AI", "⚡ Energy", "🐶 Pets", "☕ Coffee" (each filters to its stocks); "Top movers" rows (holding rows with percent pills); typing filters by symbol or name live.
6. Account: a 64 pt circle with "AR", "Alex Rivera", "Joined 2021"; a "Fletch Gold" card (a #CDA349 → #F5E3A0 gradient, black "Gold" 22 pt bold, "3.6% APY on cash"); rows "Investing $52,901.39", "Transfers", "Recurring investments", "Statements & history", "Settings" (chevrons; each pushes a simple titled page).
7. Tab bar: black with a hairline, Home (chart.line.uptrend.xyaxis), Search (magnifyingglass), Account (person.crop.circle), icons only; selected white, others #6E6E73.

DEMO ENGINE (Data/DemoScript.swift, Demo/)
- Every element a script touches registers its frame by id with .demoTarget("…") (an anchor preference): "account-title", "menu-<accountId>", "chart", "chip-<range>", "pill-<symbol>", "row-<symbol>", "holdings" (the Stocks header), "trade", "buy", "key-<0-9>", "review", "submit", "done", "back", "star", "tab-<name>", "list-<n>".
- DemoStep (absolute seconds from the start): reset (no animation), scrubAt(x 0-1) (a scrub open at that x with the dot there, drawn at once), scrubTo(x or date, duration) (the dot glides, easeInOut, and the real scrub state follows it every frame), release, dot(target, glide), press (the TouchDot presses where it is, then that target's real action runs), swipeUp(target, distance, duration), scrollTo(target or y, duration), hideDot. ScriptPlayer runs a [DemoStep] on the main actor against its start time (absolute times, so drift never builds).
- DemoScript.hook(switchTo: accountId) builds HOOK MODE's steps; a remix changes only the id. During a scrub the dot sits at the finger's x, 200 pt below the chart's top, so it never covers the line or the label.
- TouchDot: above everything (44 pt, white 30%, a 3 pt white ring, soft shadow); scales in as it lands, glides between targets (0.25 s ease), presses (scale 0.85, 0.1 s); hideDot fades it (0.25 s).

HOOK (the video's first 3 seconds)
HOOK MODE: tapping an invisible 20x60 pt strip at the RIGHT edge (x 382-402, y 500-560 pt), in its own window above everything (a tap there closes whatever is open), resets everything and plays DemoScript.hook(switchTo: "roth") through the real ScriptPlayer, stores and views, identical every time (seconds from the tap):
0.00 with no animation: Home on Individual, YTD, scrubAt(0.58): the scrub line, the grey right part, the date label and the scrubbed value all drawn (never a fade-in). 0.00-0.20 hold exactly that.
0.20 scrubTo(1.0, 0.65). 0.90 release. 1.00 press account-title (the menu drops). 1.25 dot to menu-<id>. 1.40 press → the switch. 1.85 scrubAt(0.0) (the range start). Then for each event of that account in YTD, in date order: scrubTo(its date, 0.18) and hold 0.32 on it. Then scrubTo(1.0, 0.40), hold 0.30, release, scrollTo("holdings", 0.5) so the header sits 120 pt from the top, hold 0.5, hideDot.
- Every wait uses the hook's own times, never the app's normal delays. Frame 0 fully drawn; something moves every half second; no flash longer than 0.1 s.

TOUR MODE (for filming the app's other moves)
Tapping an invisible 20x60 pt strip at the LEFT edge (x 0-20, y 500-560 pt), same window, resets and plays DemoScript.tour (seconds from the tap): 0.0 Home on Individual, 1D; 0.8 press chip-1W (morph); 1.6 press chip-1Y; 2.4 scrubAt(0.2), scrubTo(0.9, 1.4); 4.0 release; 4.6 press pill-NOVA (every pill flips to percent); 5.4 press row-NOVA (the page pushes); 6.6 scrubAt(0.3), scrubTo(0.95, 1.2); 8.0 release; 8.6 scrollTo(560, 0.8); 10.0 scrollTo(0, 0.6); 10.8 press trade; 11.6 press buy; 12.4 press key-5, 12.8 key-0, 13.2 key-0; 14.0 press review; 15.0 swipeUp(submit, 160, 0.5) → the confirmation and confetti; 17.6 press done; 18.4 press back; 19.2 press tab-search; 20.0 press list-2 (🤖 AI); 21.0 press tab-account; 22.0 press tab-home; 22.8 press account-title; 23.6 press menu-roth; 24.4 scrubAt(0.1), scrubTo(0.9, 1.2); 25.8 release; 26.2 hideDot. Every press runs the real action.

LOOK
Background #000000, cards #111111, menus and fields #1C1C1E, hairlines #262626, text white, secondary #8E8E93, up #CCFF00, down #FF5000, gold #CDA349. SF Pro everywhere; numbers .monospacedDigit(). Springs under 450 ms, light haptics on taps, pressed states (scale 0.96).

RULES
- Native SwiftUI, iOS 26 (keep the template's target), iPhone portrait.
- Deterministic fixtures. No backend, login, permissions, audio, network calls at runtime, notifications or analytics. No persistence: delete the SwiftData starter, no UserDefaults or files.
- Files under 300 lines, big bodies split into subviews, no long chained expressions; every animation smooth at 60 fps.
- Keep every file inside /home/user/workspace (/tmp is denied).

REMIX-READY
Theme/Theme.swift (colours, fonts, metrics; no colour literals elsewhere), Theme/Copy.swift (every word), Data/StockCatalog.swift, Data/AccountCatalog.swift, Data/Series.swift, Data/DemoScript.swift (HOOK MODE and TOUR MODE as [DemoStep]). Codable models with String ids (Stock, Account, Holding, ChartEvent, NewsItem, StockList) behind one MarketDataSource protocol (FixtureSource) feeding @Observable PortfolioStore and OrderStore. Series, LineChart, AccountCatalog and ScriptPlayer are the seams. Components/ (one file per component above) and Features/<Screen>/. README.md under 80 lines: the file map; how to rename the app and add a stock, an account or a chart event; 3 one-prompt remixes (a habit tracker where every habit is a stock; a sneaker and trading-card portfolio; a fantasy stock league for a group chat). "Read README.md first." atop CLAUDE.md and ios/AGENTS.md; replace ios/CLAUDE.md's structure block with this app's files. No scratch folders.

FILMING
Long-press the account title for 1 s to reset everything to launch (Home on Individual, 1D, no overlay, pills in price, orders and toasts reset).

BUILD
Theme, Copy, Format, Series and the catalogs, then Home with the LineChart (scrub, morph) and the tab bar (launch and look first), the holding rows and the account menu, the stock page, the order flow and confirmation, Search and Account, then ScriptPlayer, TouchDot and HOOK MODE, then TOUR MODE; a one-line status per screen; launch in the simulator every two or three files. Fetch media.zip as soon as the shell runs; check the file exists, never view it. Walk each flow once and fix what breaks; no pixel measuring or debug modes. Deliver the whole app, not a plan. Do not publish.
All templates