Useful extensions and functions used with SwiftUI Color
rgba
- returns values RGB and alfa chanels for Color instance
-
doBrighter (k: Double?)
- increase intensity of the color. k - is level of the intensity Default value 0.05 -
doDarker(k: Double?)
- decrease intensity of the color. k - is level of the intensity Default value 0.05