fluentui-apple
fluentui-apple copied to clipboard
[Fluent 2 iOS] Fix HUD color contrast issues
Platforms Impacted
- [x] iOS
- [ ] macOS
Description of changes
The hud now uses new tokens that fix the existing color contrast issues.
The hud's activity indicator needs different opacities for its color token in light and dark schemes. Therefore, now HUDTokens returns a UIColor with pre-applied opacity for the indicator, instead of a DynamicColor.
Verification
Changes were tested on the demo app.
| Before | After |
|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Pull request checklist
This PR has considered:
- [x] Light and Dark appearances
- [ ] iOS supported versions (all major versions greater than or equal current target deployment version)
- [ ] VoiceOver and Keyboard Accessibility
- [ ] Internationalization and Right to Left layouts
- [ ] Different resolutions (1x, 2x, 3x)
- [ ] Size classes and window sizes (iPhone vs iPad, notched devices, multitasking, different window sizes, etc)
- [ ] iPad Pointer interaction
- [x] SwiftUI consumption (validation or new demo scenarios needed)
- [ ] Objective-C exposure (provide it only if needed)



















