The Math Behind iOS Bezels: Continuous Curvature vs. Standard CSS Border-Radius
An engineering breakdown of the math behind Apple's squircle geometry, and how standard border-radius properties interact with native iOS UI elements in device mockups.
The Mathematics of the iOS Bezel: Beyond the Standard Border-Radius
When developers build user interfaces or generate mockups, the default solution for rounding corners is usually a standard CSS property: border-radius: 24px;. It is computationally cheap and well-understood. However, if you examine modern iPhone hardware or iOS app icons, the corners are visibly smoother than what a standard CSS arc can produce. Apple’s design language does not rely on standard rounded rectangles; it is structurally built upon the squircle, or mathematically speaking, the superellipse.
G1 Discontinuity and Continuous Curvature
In a standard CSS rounded rectangle, a perfectly straight line abruptly transitions into a circular arc. At the exact pixel where the line meets the curve, the curvature instantly jumps from zero to a fixed value. In industrial design and CAD modeling, this sudden shift is known as G1 discontinuity. The human eye easily detects this transition as a harsh break, and light reflects unevenly across these edges, making digital assets and hardware feel slightly unpolished.
To solve this, Apple utilizes continuous curvature. In this geometric model, the curvature does not snap. Instead, it gradually increases from zero along the straight edge, peaks precisely at the corner, and smoothly returns to zero. The underlying formula for this shape is based on the Lamé curve (superellipse): |x/a|n + |y/b|n = 1.
- n = 2: A perfect mathematical circle.
- n = 4: A true squircle.
- n ≈ 5: The quintic superellipse form that Apple closely approximates for its hardware bezels and the iOS icon grid.
This geometry was notably utilized by Danish architect Piet Hein in 1959 to solve a high-speed traffic bottleneck in Stockholm. Decades later, it became the strict baseline for Apple's hardware and software interfaces.
The Geometric Clash in App Store Mockups
This mathematical distinction introduces a practical problem for developers preparing assets for App Store Connect. Apple requires strict compliance with specific screenshot dimensions, such as the mandatory 6.5-inch and 5.5-inch display formats.
Most standard design tools and off-the-shelf ASO (App Store Optimization) templates use basic border-radius to draw device frames. Because an iOS screenshot inherently contains squircle UI elements (like the dock, widgets, and native modals), placing it inside a standard rounded-rectangle mockup causes the geometries to clash. The result is mismatched corner gaps, pixel bleeding, and clipping at the device edges.
Furthermore, many popular mockup generators are built on legacy, video-first architectures that are slow at rendering static images. They often restrict essential App Store compliance requirements—like high-resolution exports or the 1024x500 Feature Graphic—behind premium tiers, complicating the deployment pipeline for indie developers.
Applying the Math with AppScreenStudio
Handling accurate device geometry while managing global App Store metadata is a significant workflow bottleneck. AppScreenStudio was engineered as a high-performance native design tool—rather than a generic AI wrapper—to handle these specific technical requirements programmatically.
To address the geometrical and structural friction points in ASO, its architecture provides:
- Hardware-Accurate Geometry: The editor includes a dedicated Squircle toggle. This bypasses standard CSS rounding, allowing you to set device mockup frames to use true continuous curvature. Your screenshots fit cleanly inside the bezels without pixel bleeding, accurately reflecting modern device hardware.
Understanding the geometry behind the platforms you build for allows you to produce higher-quality assets. If you are looking to automate your ASO pipeline with mathematically accurate device frames, you can utilize the squircle toggle directly at AppScreenStudio.com.

