QAsyncImageView 0.1.1

QAsyncImageView 0.1.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2016
SPMSupports SPM

Maintained by Ahmad Athaullah.



  • By
  • Ahmad Athaullah

QAsyncImageView

QAsyncImageView is a extented UIImageView library written in Swift.

Features

  • Load image from URL Asynchronously
  • Load image from URL with Header Asynchronously
  • Optional use of cache image

Requirements

  • iOS 8.3+
  • Xcode 7.3+

Usage

Get Image from URL

import QAsyncImageView

let imageView = UIImageView(frame: CGRectMake(100, 50, imageWidth, imageWidth))
imageView.loadAsync("https://static.pexels.com/photos/4062/landscape-mountains-nature-lake.jpeg")

Get Image from URL with placeholder image:

import QAsyncImageView

let imageView = UIImageView(frame: CGRectMake(100, 50, imageWidth, imageWidth))
imageView.loadAsync("https://static.pexels.com/photos/4062/landscape-mountains-nature-lake.jpeg", placeholderImage: UIImage(named: "placeholder"))