Change the color of a focused element (Picker) SwiftUI - WatchOS

Qaz*_*mar 8 xcode uipickerview swift swift3 swiftui

How can I change the focus color of a selected element in WatchOS7 with swiftUI. Here's my example below with a Picker whose focus color is green (the default one) but I want to change it to blue to be consistant with my app layout.

在此输入图像描述

I search over the internet and stackoverflow but did not find andy solution to this. Is it possible to do it in SwiftUI.

gmo*_*eda 2

这是焦点颜色,您无法更改它。至少没有标准视图修饰符,如.accentColor.tint等。

例如,您可以尝试通过覆盖另一个视图(如本响应中所示)来隐藏它,或者尝试使用内省来访问 UIKit。

也许最好接受这是系统行为这一事实。