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

    placement

    The placement mapping for the sections of the view.

    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.