dg
← back to blog

What a foldable phone taught me about manga pagination

· 6 min read
blog/launch blog/ios

An iPhone Duo costs ₹2,99,900 in India. In the US it’s $1,999. I don’t own one.

I still wanted to build a manga reader for it, because it opens like a printed volume. So on 25 October I started building Duomanga with Claude Code, on Apple’s iPhone Duo simulator. A month and 281 commits later, it’s almost ready for the App Store. It has never run on a real Duo.

Day one, without the hinge

My Xcode didn’t have the Duo’s fold and hinge APIs yet. So the first thing I built was a fake fold: a stand-in mode that draws the gap down the middle of the screen. Later that day Xcode 27.1 arrived and the real APIs came on.

The simulator has a real hinge. You can bend it from code to any angle. Every UI test on the Duo now bends that hinge instead of my fake one.

Pages don’t come in twos

I underestimated this. Open a printed manga volume and the title page sits alone. After that the pages pair up, and some drawings are one wide picture across both pages. A reader that shows two pages at a time, no matter what, glues the title page to page 2. Every pair after that is off by one.

A printed volume ← read 1 2 3 4 5 6 7 8 9 Two at a time, every time 1 2 3 4 5 6 7 8 9 10
Manga reads right to left, so the first page of each pair is on the right. Two at a time, the title page sticks to page 2, the wide page gets squeezed into one half, and every pair after is off by one.

Duomanga follows the book:

  • The first page stands alone.
  • A wide scan stands alone too, so its printed gutter lands on the fold.
  • Every other page pairs with the one after it.
The 12-page sample that comes with the app, on the Duo simulator. Page 1 alone, then pairs. Page 6 stands alone because page 7 is one wide picture.

Real files are messier: one missing page, or an extra credits page, throws off every pair after it. The fix is one long-press: hold a page’s thumbnail and pick Group from this page on. That page starts a new pair, and nothing before it moves.

Grouping from page 9. Page 8 now stands alone, and 9 pairs with 10.

The fold is 40 points wide

On the simulator, the Duo’s fold measures 40 points. Anything sitting across it can’t be read, so a lot of the work was keeping things off it. Buttons, sliders and empty-state text stay 8 points clear. A lone page goes on the half you read first, like a book’s first page, instead of straddling the crease. Pick single-page mode while the Duo is bent like a book and you still get a spread, because one page would sit right on the fold. A chapter that ends on a lone page puts its end card on the empty half, like the inside back cover.

The cover flip I had to delete

Close the Duo and the outer screen shows the series cover, with the page you’re on. I wanted opening it to feel like opening a book, so I built an animation where the cover swings open with the hinge.

Then I measured the unfold on the simulator’s hinge. The inner screen only wakes at about 166°, and by then your hand has already opened the phone. So the flip always played late, showed the cover on the inside, and stopped edge-on. On 15 November I deleted it. Now the spread is simply there when the inner screen fades up, and the cover stays on the outside.

Closed, the outer screen shows the cover and your page. Open, the same spread is waiting. Duo simulator. Art: Give My Regards to Black Jack by Shuho Sato, free to reuse.

Try it

Duomanga is coming to the App Store soon. Until then, you can try the free TestFlight beta. It opens the CBZ, CBR, CB7, ZIP and PDF files you already have, and with Pro it reads straight from a Komga or Kavita server at home. It works on iPhone and iPad as well.

If you have a real iPhone Duo, I’d like to hear how it feels in your hands. Shake the phone in the app to send me a note.

Join the waitlist →