<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/apple-just-shipped-a-foldable-iphone-our-websites-are-not-ready--lxxo0diic" -->

---
title: Apple just shipped a foldable iPhone. Our websites are...
description: A developer built foldify, a small React library that helps websites adapt to foldable/dual-screen devices, framed around the fictional premise of a newly...
canonical: https://daily.dev/posts/apple-just-shipped-a-foldable-iphone-our-websites-are-not-ready--lxxo0diic
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Apple just shipped a foldable iPhone. Our websites are not ready. | daily.dev
og:description: A developer built foldify, a small React library that helps websites adapt to foldable/dual-screen devices, framed around the fictional premise of a newly...
og:url: https://daily.dev/posts/apple-just-shipped-a-foldable-iphone-our-websites-are-not-ready--lxxo0diic
og:image: https://api.daily.dev/og/posts/LxXo0Diic.png
og:image:alt: Apple just shipped a foldable iPhone. Our websites are not ready.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Apple just shipped a foldable iPhone. Our websites are not ready.

**[Summonair](https://daily.dev/sources/hwflnsh90ey86dozmhl2o)** · [@summonair](https://daily.dev/summonair) · 2 min read · 2 upvotes · 1 comments

## Summary

A developer built foldify, a small React library that helps websites adapt to foldable/dual-screen devices, framed around the fictional premise of a newly launched foldable iPhone. It exposes hooks like useViewportSegments() and useDevicePosture() plus components FoldGrid and HingeSafeArea to lay out content across screen segments and avoid the hinge area. The library relies on the W3C Viewport Segments and Device Posture APIs, which are still draft specs with only partial Chromium support behind flags and no public WebKit position, so it includes safe fallbacks (single segment, 'continuous' posture) for unsupported browsers. It's published on npm as @summonair/foldify.

## Content

[https://www.npmjs.com/package/@summonair/foldify](https://www.npmjs.com/package/@summonair/foldify)

The iPhone Duo is real now. 7.6" inner display, 5.4" outer, preorders already open. And somewhere out there a product manager is about to ask a frontend team "so what happens to our site when someone folds this thing,"

I spent a few minutes building `foldify`, a small React library for exactly this problem. Two hooks, two components, nothing clever...

`useViewportSegments()` reads the actual screen geometry — on a folded/dual-screen device it gives you back the real `DOMRect` for each segment, gap and all. `useDevicePosture()` tells you whether the device is lying flat or bent like a mini laptop. Wrap your content in `<FoldGrid>` and it splits your children across the segments automatically, with the gap sized to the actual physical hinge instead of some guessed constant. `<HingeSafeArea>` just pads things so a button doesn't end up literally inside the seam.

Here's the part that actually matters: none of this is a finished standard. Both APIs are still W3C drafts, Chromium only supports them partially behind flags, and WebKit (Safari's engine, presumably the iPhone Duo's too) hasn't even taken a public position yet. So the actual foldable iPhone in front of you might not expose any of this. Apple could add it later, do its own thing, or ignore it entirely.

That's why every function has a fallback built in from day one, not added on top. No segments API? You get one segment. No posture API? You get `'continuous'`. Nothing throws, nothing needs a feature-detect check in your code. A regular phone and a folded one hit the same code path, they just get different numbers back.

It's on npm as `@summonair/foldify` if you want to poke at it before your own PM asks the question.

## Community discussion

Top comments from developers on daily.dev.

**@agustinbarrientos** · 1 upvotes

> Good call using the same code path on regular phones. Foldables are weird enough already.

## Similar posts on daily.dev

- [A Short Update on Designing for Foldable Devices](https://daily.dev/posts/a-short-update-on-designing-for-foldable-devices-ppqmt986j) · Planet Igalia · 0 upvotes · 0 comments
- [Crease-Proof Layouts, Brain Rot Without the Black Frames, and Un-Breaking a Non-Breaking Release](https://daily.dev/posts/crease-proof-layouts-brain-rot-without-the-black-frames-and-un-breaking-a-non-breaking-release-mnygz7755) · Medium · 1 upvotes · 0 comments
- [WebKit Features for Safari 27.1](https://daily.dev/posts/webkit-features-for-safari-27-1-atcawdhm4) · WebKit · 3 upvotes · 0 comments
- [iOS 27 code reveals Apple's foldable iPhone is coming in September](https://daily.dev/posts/ios-27-code-reveals-apple-s-foldable-iphone-is-coming-in-september-0jgpfnfdu) · The Next Web · 0 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#react](https://daily.dev/tags/react), [#css](https://daily.dev/tags/css), [#ui-design](https://daily.dev/tags/ui-design)

[View this post on daily.dev](https://daily.dev/posts/apple-just-shipped-a-foldable-iphone-our-websites-are-not-ready--lxxo0diic)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/apple-just-shipped-a-foldable-iphone-our-websites-are-not-ready--lxxo0diic","headline":"Apple just shipped a foldable iPhone. Our websites are not ready.","text":"A developer built foldify, a small React library that helps websites adapt to foldable/dual-screen devices, framed around the fictional premise of a newly launched foldable iPhone. It exposes hooks like useViewportSegments() and useDevicePosture() plus components FoldGrid and HingeSafeArea to lay out content across screen segments and avoid the hinge area. The library relies on the W3C Viewport Segments and Device Posture APIs, which are still draft specs with only partial Chromium support behind flags and no public WebKit position, so it includes safe fallbacks (single segment, 'continuous' posture) for unsupported browsers. It's published on npm as @summonair/foldify.","url":"https://daily.dev/posts/apple-just-shipped-a-foldable-iphone-our-websites-are-not-ready--lxxo0diic","datePublished":"2026-09-11T09:50:28.871Z","dateModified":"2026-10-15T02:22:47.997Z","author":{"@type":"Person","name":"Summonair","url":"https://daily.dev/summonair","image":"https://media.daily.dev/image/upload/s--GODeig-X--/f_auto/v1726154030/avatars/avatar_hwFlnSH90EY86DOzmhl2O","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":1150}},"image":"https://media.daily.dev/image/upload/s--sgFbHOwX--/f_auto/v1789120229/posts/LxXo0Diic?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"comment":[{"@type":"Comment","text":"Good call using the same code path on regular phones. Foldables are weird enough already.","datePublished":"2026-09-19T13:56:51.986Z","url":"https://daily.dev/posts/LxXo0Diic#c-btrqwPUJe","author":{"@type":"Person","name":"Agustin Barrientos","url":"https://daily.dev/agustinbarrientos","image":"https://media.daily.dev/image/upload/s--5ayxQnqn--/f_auto/v1788281802/avatars/avatar_wQYYVe5Tbj0NJ7C7qPoa8?_a=BAMAMicg0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/hwflnsh90ey86dozmhl2o","name":"Summonair"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Summonair","item":"https://daily.dev/sources/hwflnsh90ey86dozmhl2o"},{"@type":"ListItem","position":3,"name":"Apple just shipped a foldable iPhone. Our websites are not ready."}]}
```

