RSDSingleColorThemeElementObject
public struct RSDSingleColorThemeElementObject : RSDColorMappingThemeElement, RSDDecodableBundleInfo
RSDSingleColorThemeElementObject
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
.
The mapping is handled using a single style for the entire view.
-
The type for the class
Declaration
Swift
public let type: RSDColorMappingThemeElementType
-
The bundle identifier.
Declaration
Swift
public let bundleIdentifier: String?
-
The default bundle from the factory used to decode this object.
Declaration
Swift
public var factoryBundle: Bundle?
-
Default initializer.
Declaration
Swift
public init(colorStyle: RSDColorRules.Style?, customColorName: String? = nil, usesLightStyle: Bool? = nil, bundleIdentifier: String? = nil)
Parameters
colorStyle
The color style for this mapping.
customColorName
The name of the custom color.
usesLightStyle
If using a custom color, the light style for the custom color.
bundleIdentifier
The bundle identifier if using a color asset file.