Developers discovered code in the iOS 27 beta referencing fold states and hinge angles, suggesting Apple is developing a foldable iPhone [1].

The discovery is significant because it provides the first technical evidence that Apple is preparing its operating system for hardware capable of folding. While the company has not officially announced a foldable device, the presence of these specific APIs indicates a strategic move into a market currently dominated by competitors.

The code was found within the iOS 27 [1] beta distributed to developers this month in June 2026 [2]. The codebase reportedly contains support for multiple built-in displays and specific references to hinge angles [1]. These findings have led some analysts to refer to the potential device as the iPhone Ultra Fold [1].

Technical details in the beta include fold-related APIs that would allow the software to recognize when a device is partially or fully closed [1]. This functionality is essential for adjusting user interfaces across a flexible screen, a requirement for any foldable smartphone.

The beta was released ahead of the Worldwide Developers Conference (WWDC) 2026 [2]. Apple has not issued a statement regarding the leaked code or the existence of a foldable handset.

Despite the technical clues, the company has a history of including experimental code in beta releases that does not always result in a commercial product. However, the specificity of the hinge and fold state markers suggests a more advanced stage of development than previous rumors had indicated [1].

Developers discovered code in the iOS 27 beta referencing fold states and hinge angles.

This leak suggests Apple is moving beyond the research phase of foldable technology and into software integration. By embedding fold-state logic into iOS 27, Apple is establishing the foundational framework necessary to launch a foldable device that can compete with existing foldable handsets in terms of software fluidity and multitasking.