You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there are many View methods that you can use on a Color. For example, .colorInvert(), .contrast(), .hueRotation(). The problem is that they return a some View instead of a new Color, so it's impossible to use them with methods that only accepts a Color.
It would be nice if there were Color-specific overloads of these methods that return a Color instead of a some View when used on a Color.
My specific use-case is that I want to invert Color.primary and use it in .stroke(), but .stroke() accepts a ShapeStyle (which Color conforms to, but View does not) and Color.primary.colorInvert() returns a some View.