Repository navigation
Commit 704ddeb
fix(mobile): iOS builds on Xcode 27.0 no longer fail on 27.1-only hinge APIs
T3LayoutMetricsView gated the iOS 27.1 hinge, vertical-bar-edge and
reserved-region APIs on `#if compiler(>=6.4)`. Xcode 27.0 ships Swift 6.4
with only the iOS 27.0 SDK, so the check passed and device and simulator
builds failed with "cannot find 'UIHingeInteraction' in scope".
Gate on the SDK instead: `canImport(UIKit, _version: 9127.0.85)` is true
only for the UIKit that ships in the iOS 27.1 SDK. The `#available(iOS
27.1, *)` runtime checks are unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 5070a83 commit 704ddeb
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
70 | | - | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
0 commit comments