RSDTemplateImageView

@IBDesignable
open class RSDTemplateImageView : UIView

The template image view is designed as an image view that shows a template image within a framing view.

  • 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 image to display within the view.

    Declaration

    Swift

    @IBInspectable
    public var image: UIImage? { get set }
  • Inset of the image from the top. Calculated from the corner radius if not explicitly set.

    Declaration

    Swift

    @IBInspectable
    public var topInset: CGFloat { get set }
  • Inset of the image from the side. Calculated from the corner radius if not explicitly set.

    Declaration

    Swift

    @IBInspectable
    public var sideInset: 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 }