How do i resolve a default iOS system element, like say UISegmentedControl
, to a particular interface style?
I know colors can be resolved like this.
color.resolvedColor(with: UITraitCollection(userInterfaceStyle: .dark))
How do i do the same for default iOS elements?