RSDBackgroundGradient

@IBDesignable
public final class RSDBackgroundGradient : UIView, RSDViewDesignable

RSDBackgroundGradient is a UI element for adding a shadow gradient to a view.

  • The color that the gradient begins with.

    Declaration

    Swift

    @IBInspectable
    public var startColor: UIColor { get set }
  • The color that the gradient ends with.

    Declaration

    Swift

    @IBInspectable
    public var endColor: UIColor { get set }
  • The background color for the table cell.

    Declaration

    Swift

    public private(set) var backgroundColorTile: RSDColorTile? {
      get
      }
  • The design system for this component.

    Declaration

    Swift

    public private(set) var designSystem: RSDDesignSystem? {
      get
      }
  • Views can be used in nibs and storyboards without setting up a design system for them. This allows for setting up views to use the same design system and background color mapping as their parent view.

    Declaration

    Swift

    public func setDesignSystem(_ designSystem: RSDDesignSystem, with background: RSDColorTile)