Skip to content

Update EnvironmentValues config - #969

Merged
Kyle-Ye merged 4 commits into
mainfrom
bugfix/macos_locale
Aug 2, 2026
Merged

Update EnvironmentValues config#969
Kyle-Ye merged 4 commits into
mainfrom
bugfix/macos_locale

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Aug 2, 2026

Copy link
Copy Markdown
Member

Summary

  • Configure root environment values before they enter app and hosting view graphs
  • Install platform providers for text attributes, resolved text, fallback fonts, and bridged traits
  • Initialize standalone macOS hosting roots so date formatting inherits the current locale, calendar, and time zone

Impact

macOS root views now use the current system locale when no explicit locale is provided, restoring the expected date format behavior.

Fixes #968

@github-actions github-actions Bot added area: data-flow State, binding, environment, preference, observation, or property data flow. area: hosting-bridge SwiftUI bridge, UIHosting/NSHosting, representables, and platform host views. area: text Text, labels, line style, and text rendering APIs. platform: macOS macOS-specific behavior or support. type: bug Something is not working correctly. labels Aug 2, 2026
@Kyle-Ye
Kyle-Ye marked this pull request as ready for review August 2, 2026 15:41
@Kyle-Ye
Kyle-Ye requested a review from Mx-Iris as a code owner August 2, 2026 15:41
@Kyle-Ye Kyle-Ye changed the title Initialize platform environment values for root views Update EnvironmentValues config Aug 2, 2026
@Kyle-Ye
Kyle-Ye merged commit 22c4209 into main Aug 2, 2026
1 of 8 checks passed
@Kyle-Ye
Kyle-Ye deleted the bugfix/macos_locale branch August 2, 2026 15:41
@Kyle-Ye Kyle-Ye linked an issue Aug 2, 2026 that may be closed by this pull request
Kyle-Ye added a commit that referenced this pull request Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: data-flow State, binding, environment, preference, observation, or property data flow. area: hosting-bridge SwiftUI bridge, UIHosting/NSHosting, representables, and platform host views. area: text Text, labels, line style, and text rendering APIs. platform: macOS macOS-specific behavior or support. type: bug Something is not working correctly.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TextHeightUITests.foregroundColor renders differently on macOS Initialize the root locale for NSHostingView on macOS

1 participant