Latest 0.1.1
Homepage https://github.com/a-athaullah/QAsyncImageView
License MIT
Platforms ios 8.0

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+

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate QAsyncImageView into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'QAsyncImageView'
end

Then, run the following command:

$ pod install

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"))

Latest podspec

{
    "name": "QAsyncImageView",
    "version": "0.1.1",
    "summary": "Simple UIImageView extension to loadAsync image",
    "description": "Simple UIImageView extension to load image from URL asynchronously (xCode 7.3).",
    "homepage": "https://github.com/a-athaullah/QAsyncImageView",
    "license": "MIT",
    "authors": "Ahmad Athaullah",
    "source": {
        "git": "https://github.com/a-athaullah/QAsyncImageView.git",
        "tag": "0.1.1"
    },
    "source_files": "QAsyncImageView/QAsyncImageView/*.swift",
    "platforms": {
        "ios": "8.0"
    }
}

Pin It on Pinterest

Share This