UIImageView

  • Convenince init that takes coordinates of bottom left corner, height width and image name.

    Declaration

    Swift

    public convenience init(x: CGFloat, y: CGFloat, w: CGFloat, h: CGFloat, imageName: String)
  • Convenience init that takes coordinates of bottom left corner, image name and scales image frame to width.

    Declaration

    Swift

    public convenience init(x: CGFloat, y: CGFloat, imageName: String, scaleToWidth: CGFloat)
  • Convenience init that takes coordinates of bottom left corner, width height and an UIImage Object.

    Declaration

    Swift

    public convenience init(x: CGFloat, y: CGFloat, w: CGFloat, h: CGFloat, image: UIImage)
  • Convenience init that coordinates of bottom left corner, an UIImage object and scales image from to width.

    Declaration

    Swift

    public convenience init(x: CGFloat, y: CGFloat, image: UIImage, scaleToWidth: CGFloat)
  • scales this ImageView size to fit the given width

    Declaration

    Swift

    public func scaleImageFrameToWidth(width: CGFloat)
  • scales this ImageView size to fit the given height

    Declaration

    Swift

    public func scaleImageFrameToHeight(height: CGFloat)
  • Rounds up an image by clipping the corner radius to one half the frame width.

    Declaration

    Swift

    public func roundSquareImage()
  • Initializes an UIImage from URL and adds into current ImageView

    Declaration

    Swift

    public func image(url: String)
  • Initializes an UIImage from URL and adds into current ImageView with placeholder

    Declaration

    Swift

    public func image(url: String, placeholder: UIImage)
  • Initializes an UIImage from URL and adds into current ImageView with placeholder

    Declaration

    Swift

    public func image(url: String, placeholderNamed: String)