SwiftUI Color extender
Useful extensions and functions used with SwiftUI Color
Computed properties
rgba
– returns values RGB and alfa chanels for Color instance
Functions
-
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 -
Color.init(hex: String)
– Initilize color with hex string like #FFFFFF