-
-
Save laevandus/cef2235e213cc87e89b1e312f881ebe6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Palette: Hashable { | |
let name: String | |
let colors: [PaletteColor] | |
// other properties | |
static let fancy = Palette(name: "Fancy", colors: [ | |
PaletteColor(name: "Red", color: .systemRed), | |
PaletteColor(name: "Blue", color: .systemBlue), | |
PaletteColor(name: "Cyan", color: .systemCyan), | |
PaletteColor(name: "Mint", color: .systemMint), | |
PaletteColor(name: "Pink", color: .systemPink), | |
PaletteColor(name: "Teal", color: .systemTeal), | |
PaletteColor(name: "Green", color: .systemGreen), | |
PaletteColor(name: "Brown", color: .systemBrown) | |
]) | |
static let secondary = Palette(name: "Secondary", colors: [ | |
PaletteColor(name: "Label", color: .secondaryLabel), | |
PaletteColor(name: "Fill", color: .secondarySystemFill) | |
]) | |
} | |
struct PaletteColor: Hashable { | |
let name: String | |
let color: UIColor | |
// other properties | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment