How SFWConfiguration.ColorType works
masterThe colorType property (of type SFWConfiguration.ColorType) allows you to define how colors are applied to slices.
- Even/Odd Pattern: Use
evenOddColors(evenColor:oddColor:)to alternate between two colors. - Solid Color: To use a single solid color, use the
customPatternColors(colors:defaultColor:)case, passingnilfor thecolorsparameter and your desired color fordefaultColor.
// Example of setting a solid color
let mySolidColor = UIColor.red
let colorType = SFWConfiguration.ColorType.customPatternColors(colors: nil, defaultColor: mySolidColor)