Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ final class T3LayoutMetricsView: ExpoView {
registerForTraitChanges([UITraitHorizontalSizeClass.self, UITraitVerticalSizeClass.self]) { (view: T3LayoutMetricsView, _: UITraitCollection) in
view.publishMetrics()
}
#if compiler(>=6.4)
// The hinge and vertical-bar APIs ship in the iOS 27.1 SDK, whose UIKit is 9127.0.85.
// Xcode 27.0 has Swift 6.4 but the 27.0 SDK (UIKit 9127.0.84), so gate on the SDK.
#if canImport(UIKit, _version: 9127.0.85)
if #available(iOS 27.1, *) {
hasHinge = nil
addInteraction(UIHingeInteraction { [weak self] _, update in
Expand Down Expand Up @@ -67,7 +69,7 @@ final class T3LayoutMetricsView: ExpoView {
}
var verticalBarEdge = "none"
var regions: [[String: Any]] = []
#if compiler(>=6.4)
#if canImport(UIKit, _version: 9127.0.85)
if #available(iOS 27.1, *) {
let rtl = effectiveUserInterfaceLayoutDirection == .rightToLeft
switch traitCollection.verticalBarEdge {
Expand Down
Loading