Wrap a Book
Lifestyle app · from our videos on X
Wrap a Book turns gifting a book into unwrapping one. Each book arrives wrapped in patterned paper with a satin bow, a gift tag and stickers. Pull the ribbon to untie it, then drag your finger across the paper: it tears in jagged strips that curl back and fly off around the book until the cover shows. Open the next gift from the stack, and every book you open stands on a little shelf. The wrap editor lets you pick the book, the paper, the ribbon and the stickers, and the gift re-wraps as you change them.
- 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 · Nov 30, 2026The prompt that builds it
We built Wrap a Book in one prompt. Paste it into a new app to build your own copy, or change it first.
Prompt · 3,459 words
Download/reference the app shown in this post and clone it exactly, including the visual design, layout, interactions, animations, typography, spacing, 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/ann_nnng/status/2127039392904851502. The reference is a 41-second desktop recording of the site; everything it shows is written out below, so build from this brief.
Build a native SwiftUI iOS app named Wrap a Book using Opus 5.5. It is a playful book-gifting toy: you wrap real books in patterned paper with a ribbon, a gift tag and stickers, and your friend unties the bow and TEARS the paper off with their finger, strip by strip, until the book cover shows. The reference is a desktop web page (stack of gifts on the left, the gift in hand in the middle, an editor panel on the right); rebuild it as an iPhone portrait app (layout below). Do NOT put a fake handset frame inside the actual app; the simulator provides that. Use realistic deterministic fixture data so every screen is rich and usable without permissions or backend. No persistence: every launch starts fresh on the first gift.
Observed video sequence (0-41s):
0-2.5s editor: a big stack of 5 wrapped gifts as 3D boxes (top to bottom: red paper with white striped bows, cream paper with red cherries, green gingham, yellow stripes, dark green with gold stars), each tied with a ribbon band; under it the hint "this is how they’ll arrive. tap one to change it" and the link "back to gift 4"; the panel on the right shows paper swatches, ribbon choices, stickers and a black "Make a link to share" button.
2.6-3.1s the yellow-striped gift slides out of the stack into the middle and turns from a tilted 3D box into a flat, upright, book-shaped gift seen from the front; the rest of the stack shrinks to the top-left. The gift has a red satin ribbon tied in a cross with a bow in the middle, a bear-face toast sticker top right, and a cream gift tag on a string ("for mia / from sam"). Hint: "pull the ribbon to untie it".
3.2-3.8s the bow is pulled: the loops shrink and untwist and the whole ribbon slides off the gift towards the lower left, where it lies as a long curving ribbon running off the bottom-left of the page with the tag lying at its end beside the hint. Hint: "now tear the paper off". You can now see the paper's fold creases (a horizontal crease across the middle, diagonal creases near the corners).
4.4-9.5s the finger drags across the paper again and again. Each drag tears out a jagged strip of paper: the hole shows the book cover underneath ("Sapiens" in red serif letters), the torn edge of the paper that stays is pale white and furry, and the strip lifts, curls back on itself showing its pale back side, then is thrown off and lands outside the gift, lying on the white page around the book with a soft shadow. Pieces keep piling up around the gift. Hints: "keep pulling" while a strip is being pulled, "keep going, tear it all off" between strips.
9.5-10.2s once most of the paper is gone the rest falls away, a soft light sweeps across the cover, and below it fade in the title "Sapiens: A Brief History of Humankind" (serif, underlined), the author "Yuval Noah Harari" (italic, small grey), a rounded outline button "Open another →" and the links "wrap it up again wrap one for someone".
10.5-11.5s "Open another": the opened book shrinks into a standing spine on a little shelf above the stack (top-left) and the next gift (cherries paper, navy satin ribbon) comes out of the stack to the middle. Same untie and tear: the cover is the yellow "The Design of Everyday Things" with a red teapot (13-17s).
17.5-24s third gift: red paper with white striped bows, a thin twine tied in a cross, a gold star sticker. Torn open it shows a black-and-white portrait cover ("Steve Jobs"). The torn red pieces are big and fly far out to the sides.
24.5-31s fourth gift: green gingham with a pink (blush satin) ribbon and stickers (heart, strawberry, pancakes, a hibiscus flower, a "READ ME" label). Torn open it shows the "Van Gogh / The Complete Paintings" cover (a swirling blue starry night). The gingham pieces scatter around it.
32-35s all books opened: the books stand on a shelf in the middle of the page as spines with handwritten titles (Sapiens: A Brief History of Humankind / Harari on a white spine, The Design of Everyday Things: Book on a yellow spine with a black label, Steve Jobs on a white-and-grey spine, Vincent Van Gogh Books, Astronaut’s Guide to Life on Earth on a dark slate spine); tapping one pulls it forward and turns it to show its cover. Hint: "<title>. take it down to read it", with each book's title as an underlined link below.
35-41s back in the editor with "Your books 3 in the stack", a book list and the "The book" field: a link is pasted, "Find it", the book is found and wrapped; the paper swatch changes from green gingham to green with gold stars and the big preview re-wraps instantly.
LAYOUT (iPhone portrait, white #FFFFFF page everywhere, no navigation bar):
Two screens: OPEN (the friend opening the gifts; the app launches here) and WRAP (the editor). A small round button top-right (gift icon, 36pt, light grey #F3F2EF) switches OPEN -> WRAP; WRAP's "Make a link to share" goes back to OPEN with every gift wrapped again.
OPEN screen:
- Top-left corner (x 16..170, y safe-top+8..+150): the STACK of the gifts not yet opened, drawn as small 3D boxes (about 120pt wide, 26pt thick, each slightly rotated -4..+4 degrees, stacked with offsets, soft shadow under the stack), and to the RIGHT of the stack a little SHELF where opened books stand as spines (about 18-24pt wide, 64-80pt tall, different heights, the spine colour of each cover, title written vertically in the handwritten font, soft shadow at their feet). Tapping the stack opens WRAP.
- Middle: the GIFT IN HAND, book-shaped, 68% of the screen width, aspect 1:1.5 (about 270x405pt), centred horizontally, top at about 30% of the screen height. 4pt corner radius, a soft long shadow down and a little to the right (lit from the upper left), a slight darkening at the edges so it reads as paper wrapped round a book.
- Under the gift: the HINT line in a thin handwritten font, grey #6E6A64, 17pt, centred; under it a row of underlined links, 14pt, grey #8A867F, spaced 22pt apart: before untying "untie it for me open it all put it back", after untying "tear it for me open it all put it back".
- Torn pieces may lie anywhere on the page around the gift, including over the top-left area; nothing clips them except the screen.
THE GIFT (the heart of the app; spend the most care here):
1. Arrive: on launch and after "Open another", the next gift leaves the stack: it scales up from the stack's position, flies to the middle and turns from a tilted 3D box (rotation3DEffect about x and y, ~35 degrees) to flat and front-facing, spring 0.65s. The hint fades to "pull the ribbon to untie it".
2. Ribbon: a satin ribbon 16pt wide in a CROSS (one vertical band, one horizontal band at 45% of the height), with a BOW where they meet: two loops (teardrop shapes, ~70pt) and two tails (~110pt, cut in a V at the ends) hanging down to the left and right; satin has a soft lengthwise sheen (lighter centre line, darker edges) and a thin shadow on the paper. A GIFT TAG hangs from the bow on a thin string: a cream (#F5EEDC) luggage tag 78x46pt with a notched end and a punched hole, rotated about -14 degrees, handwritten "for mia" and under it smaller "from sam". Twine ribbons (Baker’s twine, Jute twine) are a thin 4pt round cord instead of a band.
3. Untie: drag the bow or a tail (any drag starting within 60pt of the bow), or tap "untie it for me". The loops shrink and untwist into the tails (0.35s), then the whole ribbon slides off the gift towards the lower left (0.5s ease-out) and comes to rest as one long ribbon curving from just under the gift's bottom-left corner off the bottom-left edge of the screen, with the tag lying at its end just left of the hint. The hint becomes "now tear the paper off". Light haptic.
4. Tear: after untying, every drag that starts on the paper tears a STRIP along the finger's path:
- The strip is 38-60pt wide (random per strip), its two long edges jagged (small random zigzags every 4-7pt, 2-5pt deep) and slightly wavy. As the finger moves the strip grows along the path.
- Where the strip was, the paper is gone and the BOOK COVER underneath shows. Along every torn edge of the paper that stays there is a pale, furry fringe 2-5pt wide (#FBF8F1 with a few fibre specks), and the torn edge throws a thin soft shadow onto the cover (away from the upper-left light).
- The strip itself is drawn as its own piece of paper with the same pattern (stickers on it come with it): while the finger holds it, its loose end lifts and curls back over itself towards the finger, showing its pale matt back (#F4EFE4 with a faint ghost of the print) and casting a shadow that grows softer the higher it lifts. Hint while pulling: "keep pulling".
- On release the strip comes free and is THROWN: it flies off in the drag direction with the drag's velocity, spins 40-140 degrees, scales to ~0.9, and lands on the page outside the gift (the nearer side), staying there with a soft shadow; about a third land face down (showing the pale back). They stay until the next gift arrives. Hint between strips: "keep going, tear it all off".
- When about 65% of the paper is gone (count with a coarse grid), the rest falls away by itself: it breaks into 3-5 large jagged chunks that drop and slide off to the sides and fade (0.6s). Light haptic per strip, a success haptic at the end.
- Implement it with SwiftUI Canvas (or a Metal layer effect if you prefer): the paper layer masked by the torn region (destinationOut), the fringe drawn under the cut, each loose strip a separate view clipped to its polygon. Keep it smooth at 60 fps.
5. Reveal: the cover shows in full, a soft white light band sweeps diagonally across it (0.7s), and under the book fade in (staggered 0.15s): the title, underlined, 19pt serif (New York or Lora), black; the author, italic 13pt grey #7C776F; the "Open another →" button (rounded capsule, 1pt black outline, 15pt medium, 150x40pt); the links "wrap it up again wrap one for someone". Hint: "and there’s the book".
6. Open another: the pieces fade out, the opened book shrinks and flies to the shelf top-left and becomes a standing spine (0.6s), the next gift arrives (step 1). After the last gift, the SHELF view (below).
7. "tear it for me" plays an automatic tear: 7 strips one after another, each pulled over 0.45s with 0.12s gaps, starting from the edges and working inward, each thrown off exactly like a finger tear, then the rest falls. "open it all" makes the rest fall at once. "put it back" puts the paper and ribbon back (pieces fly back onto the gift, 0.5s). "wrap it up again" re-wraps the current book. "wrap one for someone" opens WRAP.
PAPER: each paper fills the gift with a subtle matt paper grain and the fold creases (a faint horizontal crease across the middle, short diagonal creases at the four corners, slight light/shadow along each). Papers (name, look):
- Yellow stripes: vertical stripes of buttery yellow #F2C94C and pale cream #F8E7A6, ~12pt each, soft edges.
- Cherries: cream #FAF0E0 with big glossy red cherry pairs on thin green stems and a few small pink hearts (generate the tile, see IMAGES).
- Red bows: cherry red #C8202F with white-and-pink striped bows in a staggered grid (generate the tile).
- Green gingham: five checks per 60pt, #9FD36B where threads cross, half colour where one crosses white, white elsewhere.
- Gold stars: deep green #1F7A34 with scattered gold five-point stars (#E8C24A) of a few sizes.
- Red gingham: same as green gingham in #E8483E.
- Candy stripes: pink and red stripes #F8A3A3 / #E0343E on white.
In WRAP these appear as 56pt rounded-square swatches, plus a dashed "Yours" upload swatch (opens the photo picker and wraps the gift in the picked photo, "Fill" or "Repeat").
RIBBONS (name, colour): Sage satin #9CC48A, Cream satin #EDE6D2, Blush satin #F4B6C2, Cherry satin #C8202F, Navy satin #22305C, Green gingham ribbon, Red gingham ribbon, Baker’s twine (red-and-white twisted cord), Jute twine (brown fuzzy cord). Ties: Cross, Band (one band only), No ribbon ("No ribbon, no tag: the tag hangs from the ribbon. Pick a ribbon to write one.").
STICKERS (13, die-cut with a white border and a small drop shadow, about 40-50pt on the gift): Gold star, Heart, Toast (a slice of toast with a cute bear face), Pancakes, Strawberry, Cherries, Flower seal, Stamp, Read me (a small red-bordered label reading "READ ME"), Forget-me-not, Plumeria, Hibiscus, Lily. On the gift: drag to move, tap to turn 15 degrees, drag off the gift to remove.
THE 5 FIXTURE GIFTS (in the order they are opened; the WRAP stack shows them bottom to top in reverse, so the yellow one is 4th from the top as in the reference):
1. Yellow stripes, Cherry satin cross with bow, Toast sticker top right. Book: "Sapiens: A Brief History of Humankind" by Yuval Noah Harari. Cover (draw it in SwiftUI): off-white #F4F1EA; at the top "Yuval Noah / Harari" in black serif 20pt centred; a small grey fingerprint (SF Symbol "touchid", #8C8A86, 30pt) below it; "Sapiens" huge red #C62B26 serif (about 58pt) across the middle; then "A Brief" in olive grey #6B6A52, "History of" in black, "Humankind" in red, each 30pt serif, left aligned at 14% inset. Spine: white, title in black handwriting, "Harari" at the foot.
2. Cherries, Navy satin cross with bow, Heart sticker. Book: "The Design of Everyday Things" by Don Norman. Cover: bright yellow #F3E21F; top right "The DESIGN / of EVERYDAY / THINGS" in black serif caps (The and of in italic lowercase); right side "DON / NORMAN" smaller; lower left a big glossy red teapot whose spout points back at its own handle (generated image). Spine: yellow with a black label holding the title in white handwriting.
3. Red bows, Baker’s twine cross with bow, Gold star sticker top right and a Stamp sticker. Book: "Steve Jobs" by Walter Isaacson. Cover: white, a large black-and-white close-up portrait of a thoughtful man in his fifties with round rimless glasses and short grey stubble, hand on his chin (generated image), filling the cover; small grey "Steve Jobs" and "Walter Isaacson" at the bottom. Spine: white top, grey foot, "Steve Jobs" big in handwriting.
4. Green gingham, Blush satin cross with bow, stickers Heart (top left), Strawberry (top right), Pancakes (left middle), Hibiscus (left lower), Read me (bottom right). Book: "Van Gogh: The Complete Paintings" by Ingo F. Walther and Rainer Metzger. Cover: full-bleed swirling blue-and-yellow starry night painting over a village with a church spire and a dark cypress (generated image), "Van Gogh" in white serif 44pt across the upper third with "The Complete Paintings" small under it. Spine: teal-blue with "Vincent Van Gogh Books" in white handwriting.
5. Gold stars, Jute twine cross with bow, no stickers. Book: "An Astronaut’s Guide to Life on Earth" by Chris Hadfield. Cover: near-black slate #23272E with a small astronaut floating above the curve of the Earth (generated image), title in white caps. Spine: slate with the title in white handwriting.
SHELF view (after the last book, or "see the stack"): the five books stand side by side on the page centred in the upper middle (spines facing, each about 50-60pt wide and 230-280pt tall, different heights, a soft shadow line under them). Tap a spine: it slides forward and turns 90 degrees to show its cover (spring 0.5s), the others shuffle aside; tap again to put it back. Under the shelf: hint "<that book's title>. take it down to read it" and the titles as underlined links (truncated with "…"), tapping a link pulls that book. A link "wrap one for someone" opens WRAP.
WRAP screen (editor):
- Top 44%: the big 3D STACK preview of all gifts as boxes (each ~240pt wide, 52pt thick, top face + front face + right side face with the paper wrapping round, the ribbon as a band across, stickers on the top face), stacked with small offsets and rotations like the reference's first frame, soft shadow. Under it the hint "this is how they’ll arrive. tap one to change it" and the link "back to gift 4". Tapping a box selects it (it lifts 8pt) and the panel edits it, and the preview changes instantly when you change anything.
- Below: a scrollable panel (white, 1pt #ECEAE6 top border, 16pt padding) with numbered sections (the number in a 20pt black circle with white text):
"Your books 5 in the stack" (the count in grey): a list of rows (tiny cover thumbnail 28x40pt + title), the selected row with a 1.5pt black outline and a "remove" link; then a dashed "+ Add another book" row.
"1 The book": a text field "Paste a link to a book" with a black "Find it" button (grey while empty); helper text "From Goodreads, Amazon, Open Library, Google Books, Project Gutenberg, a bookshop: most pages about a book. Or type its name or ISBN."; link "Add a book by hand". Find it shows "looking" for 0.8s then fills the book from a small local catalog (match any of the five titles or authors, plus "Pride and Prejudice" by Jane Austen and "The Little Prince" by Antoine de Saint-Exupéry with drawn covers); an unknown query gives "That link couldn’t be opened. Add the book by hand, below." A book without a cover gets a plain cloth cover: "No cover yet: it’s bound in cloth. Tap the cover to add one."
"2 The paper Yellow stripes": the swatches, "Fill" / "Repeat" pills (black fill when selected), the link "Change the picture"; helper "Or wrap it in a picture of your own: a photo, a pattern, a drawing."
"3 The ribbon Cherry satin": pills "Cross" "Band" "No ribbon", then a 3x3 grid of ribbon swatches (each a 96x26pt rounded strip of that ribbon).
"4 Stickers 1 on" with "Take them off" link right: a 5-column grid of the 13 stickers on #F3F1EC rounded tiles; helper "Tap one to stick it on. On the gift: drag it to move it, tap it to turn it, drag it off to remove it."
A sticky black capsule button at the bottom, full width: "Make a link to share". Tapping it shows a toast "Link copied" and goes to OPEN with all gifts wrapped again (the first gift arrives).
TYPE: handwritten text (hints, links, spines, tag) uses a thin handwriting font; download the Google Font "Gaegu" (Light/Regular) into the app bundle if you can, otherwise use Noteworthy-Light. Titles and covers use a serif (Lora from Google Fonts if available, else New York). Panel text uses SF Pro (15pt labels, 13pt helpers in #8A867F).
IMAGES: generate the textures and cover art with gpt-image-2.5-flare: run env and use the project's proxied OPENAI_API_KEY with https://api.openai.com/v1/images/generations (it takes 10-30 s an image). Generate: the red-bows paper tile and the cherries paper tile (seamless, flat, top-down, no shadows); the red teapot (transparent background); the black-and-white portrait; the swirling starry-night painting; the astronaut over the Earth; and the stickers (each on a transparent background, die-cut with a white border). Draw the other papers, the ribbons, the tag and the Sapiens cover in code.
Build it in small source files, in this order: the OPEN screen with the gift, ribbon untie, the tear and the reveal with the five fixtures; then the stack, Open another and the shelf; then WRAP. Get a first version compiling and running before polishing. Keep SwiftUI types simple and split complex view bodies. Build fully, run compile/build validation, resolve all errors, and launch in the web simulator. Prioritize fidelity to the reference and the tear interaction. Deliver complete implementation rather than a plan.More templates
All templates- 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.
- View template

Chipotle Clone
iOSA Chipotle-style bowl builder: every ingredient flies into the foil bowl, guac is extra, queso pours on top.




