UIImageView

Undocumented

  • Flashes the UIImageView by animating the alpha property with a 0.4 duration. - parameter startAlpha: A CGFLoat representing the start alpha. Default 1.0 - parameter endAlpha: A CGFloat representing the end alpha of the animation. Default 0.0

    Declaration

    Swift

    func flashView(startAlpha: CGFloat = 1.0, endAlpha: CGFloat = 0.0)

    Parameters

    startAlpha

    A CGFLoat representing the start alpha. Default 1.0

    endAlpha

    A CGFloat representing the end alpha of the animation. Default 0.0

  • Makes the UIImageView a circular shape. A border, border width and border color can be set - parameter bordered: A Bool to set if the UIImageView should have a border. Default true. - parameter borderWidh: A CGFloat that the border width should be, if bordered parameter is true. Default: 2.5. - parameter borderColor: A UIColor object that the border color should be. Default is white.

    Declaration

    Swift

    func circleShape(bordered: Bool = true, borderWidth: CGFloat = 2.5, borderColor: UIColor = .white)

    Parameters

    bordered

    A Bool to set if the UIImageView should have a border. Default true.

    borderWidh

    A CGFloat that the border width should be, if bordered parameter is true. Default: 2.5.

    borderColor

    A UIColor object that the border color should be. Default is white.