Fix UIKit trait collection change handling#916
Conversation
🤖 Augment PR SummarySummary: This PR improves UIKit trait-collection change handling for hosted SwiftUI content. Changes:
🤖 Was this summary useful? React with 👍 or 👎 |
| extension _UIHostingView: AnyUIHostingView { | ||
| package var debugName: String? { | ||
| // TODO: UIHostingViewDebugOptions | ||
| _openSwiftUIUnimplementedWarning() |
There was a problem hiding this comment.
Sources/OpenSwiftUI/Integration/Hosting/UIKit/View/UIHostingView+Extension.swift:415 — Calling _openSwiftUIUnimplementedWarning() inside debugName can spam logs and can even fatalError under OPENSWIFTUI_DEVELOPMENT when UIHostingViewDebugLayer.name is queried repeatedly by CoreAnimation. Consider returning nil without warning until UIHostingViewDebugOptions is implemented.
Severity: medium
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #916 +/- ##
===========================================
+ Coverage 13.81% 25.98% +12.16%
===========================================
Files 676 719 +43
Lines 44380 50668 +6288
===========================================
+ Hits 6132 13165 +7033
+ Misses 38248 37503 -745 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
UIKitEventBindingBridgethroughAnyUIHostingView/EventBindingBridgeso the bridge can update CarPlay touch handling.