RSDColorThemeElement
public protocol RSDColorThemeElement : RSDUIThemeElement
RSDColorThemeElement
tells the UI what the background color and foreground color are for a given view as
well as whether or not the foreground elements should use light style
.
-
Available for watchOS.
The background color for this step. If undefined then the background color appropriate to the light style will be used.
-
Available for iOS and tvOS.
The background color for this step. If undefined then the background color appropriate to the light style will be used.
Declaration
Swift
func backgroundColor(compatibleWith traitCollection: UITraitCollection?) -> UIColor?
Return Value
The color or
nil
if undefined. -
Available for watchOS.
The foreground color for this step. If undefined then the foreground color appropriate to the light style will be used.
-
Available for iOS and tvOS.
The foreground color for this step. If undefined then the foreground color appropriate to the light style will be used.
Declaration
Swift
func foregroundColor(compatibleWith traitCollection: UITraitCollection?) -> UIColor?
Return Value
The color or
nil
if undefined. -
Hint for whether or not the view uses light style for things like the progress bar and navigation buttons.
Declaration
Swift
var usesLightStyle: Bool