fix(ios): unblock Mac Catalyst builds (#2275)

* fix(ios): mark attachment localization key manual

* fix(ios): guard hinge probe on Mac Catalyst
This commit is contained in:
Ananovo
2026-11-04 14:48:14 +08:00
committed by GitHub
parent bd58f23bb1
commit 8e2b7ab80c
2 changed files with 5 additions and 1 deletions
@@ -22,11 +22,15 @@ struct HingeProbe: UIViewRepresentable {
func makeUIView(context: Context) -> UIView {
let view = UIView()
view.isUserInteractionEnabled = false
#if !targetEnvironment(macCatalyst)
// UIHingeInteraction is unavailable in the Mac Catalyst SDK; hinge
// detection is only meaningful on iPhone and iPad.
if #available(iOS 27.1, *) {
view.addInteraction(UIHingeInteraction { _, update in
if update.hinge != nil { FoldableDevice.shared.recordHinge() }
})
}
#endif
return view
}
+1 -1
View File
@@ -138,7 +138,7 @@
}
},
"%@ attachments" : {
"extractionState" : "manual"
},
"%@ is over the 50 MB upload limit" : {
"extractionState" : "manual",