Narrow Linux CVarArg compatibility#890
Conversation
3cdfd60 to
d1eacfc
Compare
🤖 Augment PR SummarySummary: Restricts the non-Darwin Changes:
🤖 Was this summary useful? React with 👍 or 👎 |
| // Linux Foundation does not provide NSAttributedString's CVarArg conformance yet. | ||
| // Traced on swift-corelibs-foundation#5487 | ||
| extension NSObject: @retroactive CVarArg { | ||
| extension NSAttributedString: @retroactive CVarArg { |
There was a problem hiding this comment.
Sources/OpenSwiftUICore/View/Text/Text/Text+Localized.swift:741-745 has appendInterpolation<Subject>(_:formatter:) where Subject: NSObject storing subject as a CVarArg via FormatArgument(value:). With the NSObject: CVarArg shim removed here, this likely won’t type-check (or will regress %@ interpolation) on non-Darwin.
Severity: high
🤖 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 #890 +/- ##
==========================================
+ Coverage 26.50% 26.61% +0.10%
==========================================
Files 689 684 -5
Lines 48193 47618 -575
==========================================
- Hits 12774 12673 -101
+ Misses 35419 34945 -474 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary
Validation