The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 23, 03:00 UTC
fix(mobile): iOS builds on Xcode 27.0 no longer fail on 27.1-only hinge APIs (#18913)
Co-authored-by: Jeremiah Jordan <zanson@zanson.org> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Jeremiah Jordan committed
Oct 18, 2026 at 15:10 UTC
ffa343bb816e0793ee6b86fb6c983962e30a6ead
1 file changed
+4
-2
apps/mobile/modules/t3-native-controls/ios/T3LayoutMetricsView.swift
+4
-2
@@ -14,7 +14,9 @@ final class T3LayoutMetricsView: ExpoView {
14
registerForTraitChanges([UITraitHorizontalSizeClass.self, UITraitVerticalSizeClass.self]) { (view: T3LayoutMetricsView, _: UITraitCollection) in
15
view.publishMetrics()
16
}
17
- #if compiler(>=6.4)
17
+ // The hinge and vertical-bar APIs ship in the iOS 27.1 SDK, whose UIKit is 9127.0.85.
18
+ // Xcode 27.0 has Swift 6.4 but the 27.0 SDK (UIKit 9127.0.84), so gate on the SDK.
19
+ #if canImport(UIKit, _version: 9127.0.85)
20
if #available(iOS 27.1, *) {
21
hasHinge = nil
22
addInteraction(UIHingeInteraction { [weak self] _, update in
@@ -67,7 +69,7 @@ final class T3LayoutMetricsView: ExpoView {
69
}
70
var verticalBarEdge = "none"
71
var regions: [[String: Any]] = []
70
- #if compiler(>=6.4)
72
+ #if canImport(UIKit, _version: 9127.0.85)
73
if #available(iOS 27.1, *) {
74
let rtl = effectiveUserInterfaceLayoutDirection == .rightToLeft
75
switch traitCollection.verticalBarEdge {