RSDTemplateImageButton
@IBDesignable
open class RSDTemplateImageButton : UIButton, RSDViewDesignable
The template image button is designed as a button that shows a template image within a button. There are different supported style-types for the button that can be used with the design system to set up the color of the button and the default tint for the image within.
-
The corner radius for the image view. Default is -1 which will result in a circle.
Declaration
Swift
@IBInspectable public var cornerRadius: CGFloat { get set }
-
The width of the border for views with a border. Default = 0.0 The border width must be set to a value > 0 and the border color must be set to show a border.
Declaration
Swift
@IBInspectable public var borderWidth: CGFloat { get set }
-
The color of the border for views with a border. Default = nil The border width must be set to a value > 0 and the border color must be set to show a border.
Declaration
Swift
@IBInspectable public var borderColor: UIColor? { get set }
-
Should the view display a shadow? Default = false
Declaration
Swift
@IBInspectable public var hasShadow: Bool { get set }
-
If the color key is set for the background of the button, then this will be used to set the highlighted and enabled states.
Declaration
Swift
public var buttonBackground: RSDColorKey? { get set }
-
The background color mapping that this view should use as its key. Typically, for all but the top-level views, this will be the background of the superview.
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)