UIView

class UIView : UIResponder, NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate
  • Shows view with duration

    Declaration

    Swift

    public func fadeIn(withDuration duration: Double = 0.2)

    Parameters

    duration

    The duration of fading, default value is 0.2

  • Hides view with duration

    Declaration

    Swift

    public func fadeOut(withDuration duration: Double = 0.2)

    Parameters

    duration

    The duration of fading, default value is 0.2

  • Corner radius of the view, sets values and maskToBounds on layer

    Declaration

    Swift

    @IBInspectable
    open var cornerRadius: CGFloat { get set }
  • Border color of the view, sets color on layer

    Declaration

    Swift

    @IBInspectable
    open var borderColor: UIColor? { get set }
  • Border width color of the view, sets width on layer

    Declaration

    Swift

    @IBInspectable
    open var borderWidth: CGFloat { get set }
  • Convenience property, sets view’s alpha to 0 or 1, depending on Bool value

    Declaration

    Swift

    @IBInspectable
    open var isFaded: Bool { get set }