enum ColorEnumColor values.
-
Black.
Declaration
Swift
case black -
Navy.
Declaration
Swift
case navy -
Green.
Declaration
Swift
case green -
Teal.
Declaration
Swift
case teal -
Maroon.
Declaration
Swift
case maroon -
Purple.
Declaration
Swift
case purple -
Olive.
Declaration
Swift
case olive -
Gray.
Declaration
Swift
case gray -
Blue.
Declaration
Swift
case blue -
Lime.
Declaration
Swift
case lime -
Aqua.
Declaration
Swift
case aqua -
Red.
Declaration
Swift
case red -
Fuchsia.
Declaration
Swift
case fuchsia -
Yellow.
Declaration
Swift
case yellow -
White.
Declaration
Swift
case white -
Nickel.
Declaration
Swift
case nickel -
Chrome.
Declaration
Swift
case chrome -
Brass.
Declaration
Swift
case brass -
Copper.
Declaration
Swift
case copper -
Silver.
Declaration
Swift
case silver -
Gold.
Declaration
Swift
case gold -
Creates a new instance with the specified raw value.
If there is no value of the type that corresponds with the specified raw value, this initializer returns
nil. For example:enum PaperSize: String { case A4, A5, Letter, Legal } print(PaperSize(rawValue: "Legal")) // Prints "Optional(PaperSize.Legal)" print(PaperSize(rawValue: "Tabloid")) // Prints "nil"Declaration
Swift
init?(rawValue: UInt64)Parameters
rawValueThe raw value to use for the new instance.