You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move off foregroundColor / cornerRadius / overlay(_:alignment:), which are deprecated in a future SDK #28
With the iOS 18 / macOS 15 floor from #15, the library still uses SwiftUI APIs that Apple marks "deprecated in a future version". They don't produce warnings yet, but they will in a future SDK:
API
Count in Sources/
Replacement
.foregroundColor(_:)
~90
.foregroundStyle(_:)
.cornerRadius(_:)
7
.clipShape(.rect(cornerRadius:)) (with style: .continuous wherever the design calls for it)
#15 migrated only the code it rewrote, and the rest is deliberately left for a separate PR. It is a mechanical change, but it touches almost every component, so it needs its own visual check.
Notes
foregroundStyle on Text inside Text concatenation needs care: check the places that concatenate Text.
.cornerRadius draws a non-continuous corner. Keep that look, or switch deliberately to .continuous where the design uses it.
After the migration, swift build should have no deprecation warnings on the latest SDK.
changed the title [-]Move off foregroundColor / cornerRadius, which are deprecated in a future SDK[/-][+]Move off foregroundColor / cornerRadius / overlay(_:alignment:), which are deprecated in a future SDK[/+]on Oct 23, 2026
Activity
[-]Move off foregroundColor / cornerRadius, which are deprecated in a future SDK[/-][+]Move off foregroundColor / cornerRadius / overlay(_:alignment:), which are deprecated in a future SDK[/+]