Apple Home Clone
Apple Home clone · Smart home app · from our videos on X
Apple Home Clone is the iPhone's Home app rebuilt in SwiftUI. Tap a tile to switch a light, unlock the front door or open the garage, and long-press a light for the giant brightness slider with colour presets. Open the Front Yard camera and drag the Christmas Lights: the live feed of the house lights up with the slider. Drag the thermostat dial, run Good Night or Holiday Lights and watch the scene ripple across every tile, and tap the package alert to see the doorbell. Everything runs on a sample home, ready to wire to your own devices.
- 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@vibecodeapp · Dec 1, 2026The prompt that builds it
We built Apple Home Clone in one prompt. Paste it into a new app to build your own copy, or change it first.
Prompt · 3,295 words
Build Home, a polished native iPhone app in SwiftUI in the iOS 26 system style of the iPhone's built-in Home app: category buttons, live cameras, scenes and accessory tiles by room, the camera view with its accessories, the giant brightness slider, the thermostat dial, locks, package notifications, Automation and Discover. Simulated accessories only: no HomeKit, real cameras, network or permissions. The user is Alex Rivera; the home is "Maple St". Today is Tuesday, December 1, 2026: Christmas lights week.
ASSETS
curl -L once and unzip flat: https://home-3fa6.beacon.host/media.zip (home-icon.png: the app icon; wallpaper.jpg: the Home background, 768x1152; camera stills 1024x1536 .jpg: yard-off (the house at night, its Christmas lights off), yard-on (the exact same frame with the lights on), door-cam (the doorbell: a package on the mat); 1536x1024 .jpg: backyard, livingroom). Add them all to the asset catalog and set home-icon.png as the app icon. Everything else is SF Symbols or drawn in code. No image generation is needed.
SHELL
Opens on the Home tab: no splash, onboarding, sign-in or permission prompts. Dark appearance everywhere (force .dark). The status bar stays visible and white on every screen. Root = one ZStack: the wallpaper (wallpaper.jpg, aspect fill, ignoring safe areas), the current tab's NavigationStack, the floating tab bar, the full-screen overlay layer (camera view, accessory detail, thermostat: full-screen views in this same ZStack, never sheets or fullScreenCovers), the banner layer, 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 (Format/)
One number formatter with Locale(identifier: "en_US"): "68°", "30%", "25,000%" (with grouping). The simulator's region is not en_US: never use the device locale.
FIXTURES (Data/Fixtures.swift: ONE list per kind; a new room, accessory, camera or scene is one entry)
Rooms (in order): Front Yard, Entry, Living Room (Backyard has only a camera).
Accessories (id · name · room · kind · symbol · default):
xmas · "Christmas Lights" · Front Yard · light · light.strip.2.fill (fallback sparkles) · off, 100%, warm white
porch · "Porch Light" · Front Yard · light · lightbulb.fill · on, 100%, warm white
driveway · "Driveway Lights" · Front Yard · light · lightbulb.2.fill · off, 100%, warm white
door · "Front Door" · Entry · lock · lock.fill / lock.open.fill · locked
garage · "Garage Door" · Entry · garage · door.garage.closed / door.garage.open · closed
tree · "Tree" · Living Room · outlet · tree.fill · off
ceiling · "Ceiling Lights" · Living Room · light · light.recessed.fill (fallback lightbulb.fill) · on, 60%, warm white
thermostat · "Thermostat" · Living Room · thermostat · thermometer.medium · current 68°, target 68°, Heat
tv · "Living Room TV" · Living Room · tv · tv.fill · off
homepod · "HomePod" · Living Room · speaker · homepod.fill · "Not Playing"
Cameras (id · name · room · layers · feed aspect · linked light · night vision):
front-yard · "Front Yard" · Front Yard · [yard-off at level 0, yard-on at level 1.0] · 2:3 · xmas · no
front-door · "Front Door" · Entry · [door-cam at 0] · 2:3 · porch · no
backyard · "Backyard" · Backyard · [backyard at 0] · 3:2 · none · yes (always night vision)
living-room · "Living Room" · Living Room · [livingroom at 0] · 3:2 · tree · no
Scenes (id · name · symbol · tint · actions):
arrive · "Arrive Home" · house.fill · orange · porch on, door unlocked, thermostat target 70°
leave · "Leave Home" · figure.walk.departure · teal · every light off, door locked, garage closed
goodnight · "Good Night" · moon.stars.fill · indigo · every light, outlet and TV off, door locked, garage closed, thermostat target 66°
holiday · "Holiday Lights" · sparkles · red · Christmas Lights on 100% multicolour, tree on, porch on, driveway on
Categories (computed live): Climate (thermometer.medium, cyan) "<target>°"; Lights (lightbulb.fill, yellow) "<n> On"; Security (lock.fill, teal) "Locked" or "1 Unlocked"; Speakers & TVs (tv.fill) "Not Playing".
Automations: Sunset · "Christmas Lights and Porch Light turn on" (sun.horizon.fill); 11:00 PM · "Christmas Lights turn off" (moon.fill); When I arrive home · "Unlock Front Door" (figure.walk.arrival); When a package is detected · "Notify me" (shippingbox.fill).
SCREENS
1. Home tab: two 40 pt glass circles at the top right (plus, ellipsis). Large title "Maple St" (34 pt bold) with a small chevron.down. Category buttons: a horizontal row of glass capsules, 54 pt tall (a 30 pt coloured circle with the symbol, the name 14 pt semibold over the status 13 pt). Then sections, each with a header (20 pt bold + chevron.right in secondary):
- "Cameras": the Front Yard card full width (16 pt side margins, 16:9, 18 pt corners, drawn by FeedView, aspect fill anchored at 42% of the photo's height), the name and a red LIVE dot at the bottom-left; under it a row of three 150x96 cards: Front Door, Backyard, Living Room. Tap a card → that camera's view.
- "Scenes": a 2-column grid of glass scene tiles (60 pt, the symbol in its tint, the name 15 pt semibold). Tap runs it.
- One section per room ("Front Yard", "Entry", "Living Room"): a 2-column grid (12 pt gaps) of AccessoryTiles.
- 120 pt bottom padding.
2. Camera view (full-screen overlay, black): a top bar under the status bar: a back chevron in a 40 pt glass circle, the centred camera name (17 pt semibold) with a red "LIVE" capsule (white 11 pt bold on #FF3B30), an ellipsis glass circle at the right. The feed: full width, directly under the top bar, 560 pt tall for 2:3 cameras (268 pt for 3:2), drawn by FeedView, aspect fill anchored at 40% of the photo's height; a mic and a speaker glass circle (36 pt) at its bottom-left. Under the feed: a 32 pt timeline strip (hairline ticks, three event dots, a red LIVE marker at the right end). At the bottom, 12 pt above the home indicator: a horizontal row of the AccessoryTiles in the camera's room (Front Yard: Christmas Lights, Porch Light, Driveway Lights). Tap a tile toggles it; long-press a light opens its LightPanel.
3. Accessory detail (full-screen overlay; long-press a light, outlet, TV or speaker tile on the Home tab): dark material over the wallpaper; the symbol in a 44 pt circle, the name 24 pt bold, "Front Yard · 30%" 15 pt secondary, an xmark glass circle; a light shows the LightSlider (140x380 pt) with the colour presets under it; others one 120 pt round power button.
4. Thermostat (full-screen overlay, opens on tap): "Thermostat" 24 pt bold, "Living Room · Heating to 72°" (or "Idle") 15 pt secondary; the dial: a 270° arc (135° to 405°, white 15%, 22 pt thick, round caps), the arc between the current temperature and the target filled orange #FF9F0A (heating) or cyan #64D2FF (cooling), a 30 pt white knob on the arc at the target; the target in the centre (72 pt light, monospaced digits) over "Currently 68°"; dragging the knob around the arc sets the target in 1° steps from 50° to 90° with a selection haptic each step. Mode capsules: Off, Heat, Cool, Auto.
5. Automation tab: large title "Automation"; glass rows (tinted symbol circle, trigger 15 pt semibold, action 13 pt secondary, an on Toggle).
6. Discover tab: large title "Discover"; three 200 pt photo cards with white text over a gradient: "Make your home merry 🎄" (yard-on), "See who's at the door" (door-cam), "Stay cosy this winter" (livingroom).
7. Tab bar: a floating Liquid Glass capsule (.glassEffect, or .ultraThinMaterial with a 0.5 pt white 25% border), 64 pt tall, 16 pt side margins, 8 pt above the home indicator; Home (house.fill), Automation (clock.fill), Discover (star.fill), icon over label (10 pt medium); selected white with a glass lens that slides between items (matchedGeometryEffect, spring), others white 55%. Hidden under full-screen overlays.
ACCESSORY TILE (Components/AccessoryTile.swift: the one view every grid and the camera view use)
64 pt tall, flexible width (170 pt in the camera row), 18 pt corners. Off: white 12% over .ultraThinMaterial; the symbol white in a 36 pt white-18% circle; the name 15 pt semibold white; the status 13 pt white 60% ("Off", "Locked", "Closed", "Not Playing"). On: white 92% fill; the symbol white in a 36 pt circle of the accessory's tint (a light: its colour, warm white drawn as #FFD60A; outlet #FFD60A; unlocked lock and open garage #FF9F0A; TV #0A84FF; heating thermostat #FF9F0A); the name black; the status black 55% ("30%", "On", "Unlocked", "Open", "Heating to 72°"). The fill changes in 0.18 s and the symbol bounces (.symbolEffect(.bounce)). Transitions ("Unlocking…" 0.6 s, "Opening…" 1.8 s) show a small spinner. No Response: white 8% fill, the symbol at 30%, the status "No Response" 13 pt white 45%; taps do nothing. Tap toggles (light, outlet, TV on/off; lock; garage); long-press (0.35 s) opens the detail (lights, outlets, TVs, speakers); the thermostat opens on tap.
LIGHT SLIDER (Components/LightSlider.swift: the signature gesture)
A vertical rounded rectangle (corner radius 30% of its width): track white 16%; the fill rises from the bottom to the brightness in the light's colour (warm white #FFE3A3, cool white #E9F1FF, red #FF453A, green #32D74B, blue #0A84FF, multicolour = a vertical gradient #FF453A → #FFC83D → #32D74B → #0A84FF); a lightbulb.fill (28 pt, black 45%) near the bottom inside the fill. Dragging anywhere on it changes brightness relatively (1 pt = 1/height), 1-100% (dragging to 0 turns it off). The percent shows above it (36 pt bold, monospaced digits). A light haptic every 10%. Brightness moves smoothly, never in steps, and every view showing that light reads the same value on the same frame: its tiles' status, the Lights category, every FeedView linked to it.
Colour presets (Components/ColorPresets.swift): six 34 pt circles (warm white, cool white, red, green, blue, multicolour) with a 2.5 pt white ring on the selected one.
LIGHT PANEL (on the camera view)
Long-pressing a light tile on the camera view slides in a glass panel (.ultraThinMaterial, 28 pt corners, 0.5 pt white 25% border) over the RIGHT side of the feed: x 270-390 pt, vertically centred on the feed, 120x400 pt (spring 0.35 s), holding the light's name (13 pt semibold, one line), the percent (30 pt bold), the LightSlider (88x300 pt) and three preset dots (warm white, red, multicolour; 24 pt). The house stays visible on the left two thirds. Tapping the feed outside the panel closes it.
FEED (Components/FeedView.swift + Data/Feeds.swift: the seam a remix uses)
- FeedLayer: photo (asset name), level (Double: 0 = the linked light off, 1.0 = 100%; may be above 1.0).
- A camera's layers stack bottom-up: layer 0 is opaque; layer i (i ≥ 1) has opacity clamp((L − level[i−1]) / (level[i] − level[i−1]), 0, 1), where L = the linked light's brightness as a fraction (0 when off; may go above 1.0). So Front Yard at 30% = yard-on at 30% over yard-off. The opacities follow L on every frame, with no animation of their own.
- Glow: when L > 1.0, a copy of the topmost visible layer, blurred 24 pt, blended .screen at opacity min((L − 1) / 40, 0.55).
- Night vision (camera.nightVision, or a camera whose power is out): the photo drawn .grayscale(1), .contrast(1.35), .brightness(0.10), a faint green tint (#9CFFB0 at 10%, .multiply) and a "Night Vision" capsule (moon.fill, 11 pt) at the top right.
- Every camera drawing (Home cards, camera view) uses FeedView, so they change together.
OVERDRIVE (Features/Overdrive/: empty in this app; a remix adds an entry)
- OverdriveMode: id, accessoryId, title (chip text), symbol, maxPercent (Int above 100), extraLayers [FeedLayer] (appended to the linked camera's layers while the mode is on), peak (PowerEvent?), startsOn (Bool).
- PowerEvent: outagePhoto (asset), delay (seconds after maxPercent is reached), banner (Banner).
- OverdriveCatalog.all: [OverdriveMode] = [] here.
- When a light has an entry, its LightPanel and detail show a chip above the slider (a capsule: the symbol and title, gradient #FF453A → #FFC83D, white 13 pt semibold, a soft glow pulsing as a pure function of time). The chip toggles the mode. With the mode on, the slider can go past 100%: once the fill reaches the top, further upward drag keeps raising the level, percent = 100 × 10^(d / 70) for d points dragged above the top, capped at maxPercent. Above 100%: the fill bursts out of the track's top as a glowing column in the light's colour (8 pt narrower than the track, outer glow radius 18) whose top climbs from the track's top to the top of the screen as log10(percent / 100) goes from 0 to log10(maxPercent / 100); the percent leaves the panel and becomes a big readout centred over the top of the feed (56 pt heavy, white, dark shadow), jittering ±1.5 pt above 1,000%; a rigid haptic at every ×10. FeedView reads L = percent / 100.
- At maxPercent, after peak.delay, the power cuts in 2 frames: every accessory tile shows No Response, every light's L drops to 0 (the column and fill vanish in 0.12 s, the readout shows "—"), the linked camera's feed shows peak.outagePhoto in night vision, the category statuses read "No Response", and peak.banner drops. Any reset (HOOK MODE, TOUR MODE, the title long-press) restores power.
BANNERS AND TOAST
- BannerView: an iOS notification (.regularMaterial, 24 pt corners, 10 pt margins, under the status bar): a 38 pt avatar (photo circle, or the app icon), the title 15 pt semibold, "now" 13 pt secondary, the body 15 pt (2 lines), an optional 44 pt thumbnail. Spring in (0.4 s), 3.5 s, slides up; a tap runs its action.
- The package banner: the app icon, "Front Door", "A package was detected.", thumbnail door-cam; tap → the Front Door camera.
- Toast: a glass capsule above the tab bar (15 pt), 1.8 s ("Good Night · 9 accessories").
SCENES
Running a scene: its tile flashes white for 0.6 s; its actions reach the tiles one by one in grid order, 0.06 s apart, each tile animating its own change; then the toast "<Scene> · <n> accessories".
DEMO ENGINE (Data/DemoScript.swift, Demo/)
- Every element a script touches registers its frame by id with .demoTarget("…") (an anchor preference): "tab-<name>", "tile-<accessoryId>" (on whichever screen shows it), "camera-<id>", "scene-<id>", "back", "close", "slider" (the visible LightSlider), "preset-<name>", "chip-overdrive", "dial-knob", "banner".
- DemoStep (absolute seconds from the start): reset (no animation), openCamera(id), openPanel(accessoryId) (both with no animation at 0.00), dot(target, glide), press (the TouchDot presses where it is, then that target's real action runs), hold (its long-press action), drag(toPercent, duration) (brightness moves there with ease-in-out through the real slider code, overdrive included, and the dot rides the fill's top), dialTo(degrees, duration), scrollTo(y, duration), selectTab, banner(id), toast(text), hideDot. ScriptPlayer runs a [DemoStep] on the main actor against its start time (absolute times, so drift never builds).
- Helpers a remix reuses: DemoScript.cameraOpener (HOOK's 0.00-0.85 below) and DemoScript.drag(to:start:duration:).
- 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), stays on the fill's top during a drag; hideDot fades it (0.25 s).
HOOK (the video's first 3 seconds)
- HOOK MODE: tapping an invisible 24x60 pt strip at the RIGHT edge (x 378-402, y 300-360 pt), in its own window above everything (overlays, banners, toasts; a tap there closes whatever is open), resets everything and plays DemoScript.hook through the real ScriptPlayer, store and views, identical every time (seconds from the tap):
0.00 with no animation: the Front Yard camera view open, Christmas Lights on at 30% warm white (the feed: yard-on at 30% over yard-off), its LightPanel open, every other accessory at its default, any OverdriveMode with startsOn already on; fully drawn (never a fade-in or slide-in).
0.00-0.40 hold exactly that.
0.40 the dot lands on the slider's fill top; 0.45 drag(to 100, 0.40 s): the house's lights come up to full.
1.25 drag(to 10, 0.50 s); 2.05 drag(to 100, 0.40 s); 2.80 hideDot.
- Every wait uses the hook's own times, never the app's normal delays.
- What the eye must see: 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 24x60 pt strip at the LEFT edge (x 0-24, y 300-360 pt), same window, resets and plays DemoScript.tour (seconds from the tap): 0.0 the Home tab at the top; 0.6 press tile-xmas (on: the Front Yard card's lights come up); 1.4 press tile-tree; 2.2 press tile-door ("Unlocking…" → "Unlocked"); 3.4 press tile-door (locks); 4.4 press tile-thermostat → Thermostat; 5.2 dialTo 72° (0.8 s, the arc fills orange, "Heating to 72°"); 6.8 press close; 7.4 scrollTo the Scenes section (0.6 s); 8.2 press scene-goodnight (the cascade, the toast); 10.0 press scene-holiday (the lights cascade on in multicolour); 11.8 scrollTo the top (0.6 s); 12.6 banner(package); 13.6 press banner → the Front Door camera; 15.4 press back; 16.0 press camera-front-yard; 17.0 hold tile-xmas → the LightPanel; 17.8 drag(to 20, 0.6 s); 18.8 drag(to 100, 0.5 s); 19.6 press preset-warm; 20.4 press back; 21.0 press tab-automation; 22.4 press tab-discover; 23.8 press tab-home; 24.6 hideDot. Every press runs the real button action.
LOOK
Dark iOS 26: the wallpaper under the tabs; glass = .glassEffect where available, else .ultraThinMaterial with a 0.5 pt white 20% border; text white, secondary white 60%; yellow #FFD60A, orange #FF9F0A, cyan #64D2FF, teal #30D5C8, red #FF3B30, indigo #5E5CE6. SF Pro everywhere; numbers .monospacedDigit(). Springs under 450 ms, light haptics on taps, pressed states (scale 0.96). Photos decoded at launch, off the main thread.
RULES
- Native SwiftUI, iOS 26 (keep the template's target), iPhone portrait.
- Deterministic fixtures. No backend, login, permissions, HomeKit, 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/Fixtures.swift, Data/Feeds.swift, Data/DemoScript.swift (HOOK MODE and TOUR MODE as [DemoStep]). Codable models with String ids (Room, Accessory, AccessoryState, HomeCamera, FeedLayer, HomeScene, Automation, OverdriveMode, PowerEvent, Banner) behind one HomeDataSource protocol (FixtureSource) feeding an @Observable HomeStore (accessory states, cameras, scenes, selected tab, open overlay, banners, toasts, power). AccessoryTile, LightSlider, FeedView, OverdriveCatalog 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 home and add a room, accessory, camera or scene; 3 one-prompt remixes (an office building console with floors and badge readers; a holiday light show that syncs the lights to a song; a greenhouse with grow lights, humidity and plant cameras). "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 "Maple St" title for 1 s to reset everything to launch (Home tab at the top, default states, no overlay, banners and toasts gone, power on).
BUILD
Theme, Copy, Fixtures and Format, then the Home tab with AccessoryTile and the tab bar (launch and look first), then FeedView and the camera cards, the camera view, LightSlider, the LightPanel and the accessory detail, the thermostat, scenes and banners, Automation and Discover, then ScriptPlayer, TouchDot and HOOK MODE, then the Overdrive support and 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 files exist, never view them. Walk each flow once and fix what breaks; no pixel measuring or debug modes. Deliver the whole app, not a plan. Do not publish.More templates
All templates- 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.
- View template

Whatnot Clone
iOSA Whatnot-style live auction app: swipe to bid on a live show, beat the countdown, win to confetti.




