What a foldable phone taught me about manga pagination
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.
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.
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.
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.
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.