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

---
title: Apple just shipped a foldable iPhone. Our websites are...
description: A developer built foldify, a small React library with hooks and components (useViewportSegments, useDevicePosture, FoldGrid, HingeSafeArea) to help websites...
canonical: https://daily.dev/posts/apple-just-shipped-a-foldable-iphone-our-websites-are-not-ready--3cpxwofep
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 with hooks and components (useViewportSegments, useDevicePosture, FoldGrid, HingeSafeArea) to help websites...
og:url: https://daily.dev/posts/apple-just-shipped-a-foldable-iphone-our-websites-are-not-ready--3cpxwofep
og:image: https://api.daily.dev/og/posts/3CpxWOFEp.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.

**[NPM Packages](https://daily.dev/sources/npmpackages)** · [@summonair](https://daily.dev/summonair) · 2 min read · 0 upvotes · 0 comments

## Summary

A developer built foldify, a small React library with hooks and components (useViewportSegments, useDevicePosture, FoldGrid, HingeSafeArea) to help websites adapt to foldable and dual-screen devices, framed around the premise of a hypothetical foldable iPhone. The library reads screen segment geometry and device posture from draft W3C APIs, with graceful fallbacks since browser support (including Safari/WebKit) is incomplete or nonexistent. Published on npm as @summonair/foldify.

## Content

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.

## 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
- [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
- [Apple’s foldable iPhone could be just around the corner](https://daily.dev/posts/apple-s-foldable-iphone-could-be-just-around-the-corner-ul3ehthef) · TechCrunch · 1 upvotes · 0 comments

---

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

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

```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--3cpxwofep","headline":"Apple just shipped a foldable iPhone. Our websites are not ready.","text":"A developer built foldify, a small React library with hooks and components (useViewportSegments, useDevicePosture, FoldGrid, HingeSafeArea) to help websites adapt to foldable and dual-screen devices, framed around the premise of a hypothetical foldable iPhone. The library reads screen segment geometry and device posture from draft W3C APIs, with graceful fallbacks since browser support (including Safari/WebKit) is incomplete or nonexistent. Published on npm as @summonair/foldify.","url":"https://daily.dev/posts/apple-just-shipped-a-foldable-iphone-our-websites-are-not-ready--3cpxwofep","datePublished":"2026-09-12T17:26:02.557Z","dateModified":"2026-09-12T17:26:23.991Z","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--SmCm0vr8--/f_auto/v1789120231/posts/Ns5vF5pOs?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/npmpackages","name":"NPM Packages"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"NPM Packages","item":"https://daily.dev/squads/npmpackages"},{"@type":"ListItem","position":3,"name":"Apple just shipped a foldable iPhone. Our websites are not ready."}]}
```

