๐ผ๏ธColor
// from Asset Catalog
let aqua = Color("aqua")
// RGB / HSL / grayscale
let skyBlue = Color(red: 0.46, green: 0.84, blue: 1.0)
let lemonYellow = Color(hue: 0.16, saturation: 1, brightness: 1)
let steelGray = Color(white: 0.47)
// from UIColor / NSColor:
#if os(iOS)
let linkColor = Color(uiColor: .link)
#elseif os(macOS)
let linkColor = Color(nsColor: .linkColor)
#endif
// predefined colors:
[.black, .green, .purple]
Color Names
Robert Cooper โฉ Color Namer
Chirag Mehta โฉ Name that Color
Palettes
SwiftUI โฉ ShapeStyle โฉ
Color โฉ ShapeStyle Implementations - define system colors (again).
List โฉ View Implementations โฉ saturation(_:)
Core Image โฉ Applying a Chroma Key Effect โญ๏ธ - a.k.a. bluescreening or greenscreening.
Human Interface Guidelines โฉ System Colors - colorful swatches.
UIKit โฉ UIColor โฉ
Standard Colors - .systemBlue, .systemBrown ...
UI Element Colors - .
systemBackground
, ...
Last updated