RSDColorPlacementThemeElementObject
public struct RSDColorPlacementThemeElementObject : RSDColorMappingThemeElement, RSDDecodableBundleInfo
RSDColorPlacementThemeElementObject 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 dictionary of color placements to the color style for that placement.
-
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(placement: [String : RSDColorRules.Style], customColorName: String? = nil, usesLightStyle: Bool? = nil, bundleIdentifier: String? = nil)Parameters
placementThe placement mapping for the sections of the view.
customColorNameThe name of the custom color.
usesLightStyleIf using a custom color, the light style for the custom color.
bundleIdentifierThe bundle identifier if using a color asset file.
View on GitHub
RSDColorPlacementThemeElementObject Structure Reference