Closed meoz closed 5 years ago
Use the palettes
property of the InlineColorPickerRow
instance instead:
<<< InlineColorPickerRow("colorcode") { (row) in
row.title = "Color Code"
row.isCircular = true
row.showsPaletteNames = false
row.value = UIColor.white
let palette = ColorPalette(name: "All",
palette: [ColorSpec(hex: "#ffffff", name: "White"),
ColorSpec(hex: "#000000", name: "Black")])
row.palettes = [palette]
}
Thanks !!
Works fine with ColorPickerRow but InlineColorPickerRow always shows the default palettes even when setting a custom palette like this: