The .accentColor
modifier has been deprecated, and in its place is a far more capable modifier called .tint
. One version of it takes a Color
, which is identical to .accentColor
. The other one is generic, which makes it much more interesting:
@inlinable public func tint<S>(_ tint: S?) -> some View where S : ShapeStyle
Any type…
Keep reading with a 7-day free trial
Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.