mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-08 01:43:07 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
}
|
||||
},
|
||||
"%@ attachments" : {
|
||||
|
||||
"extractionState" : "manual"
|
||||
},
|
||||
"%@ is over the 50 MB upload limit" : {
|
||||
"extractionState" : "manual",
|
||||
|
||||
Reference in New Issue
Block a user