feedback-assistant / reports

Open collection of Apple Feedback Assistant reports
237 stars 2 forks source link

FB11381682: `.toolbarColorScheme` is applied too broadly #353

Open PhilipTrauner opened 2 years ago

PhilipTrauner commented 2 years ago

Description

Xcode: 14.0 beta 6 (14A5294g) iOS: 16.0 Beta 7

The color scheme provided in .toolbarColorScheme(_ colorScheme: ColorScheme?, for bars: ToolbarPlacement...) is applied more broadly than expected.

Expected: Provided color scheme should only be applied for provided bar (e.g. .navigationBar) Actual: Color scheme is applied to Button labels regardless of placement, and tab bar

Depending on the chosen AccentColor this can lead to invisible buttons.

Demonstration included in attached screen recording.

Files

https://user-images.githubusercontent.com/9287847/186988835-77a89e63-fbef-468e-b6f1-5c8c25430762.mp4

Toolbar Color Scheme.zip

PhilipTrauner commented 2 years ago

iOS 16.1 beta 1 workaround:

RootView()
    .tint(Color(uiColor: .label))