GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cezarc1/LoadingImageView: Loading Indicator for UIImageView, written in Swift.

BranchesTags
Open more actions menu

Latest commit

 

History

28 Commits
28 Commits

Folders and files

NameName
Last commit message
Last commit date
Example
Example
 
 
LoadingImageView Example.xcodeproj
LoadingImageView Example.xcodeproj
 
 
LoadingImageView.xcworkspace
LoadingImageView.xcworkspace
 
 
Pods
Pods
 
 
Screenshots
Screenshots
 
 
Source
Source
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
LoadingImageView.podspec
LoadingImageView.podspec
 
 
Podfile
Podfile
 
 
Podfile.lock
Podfile.lock
 
 
README.md
README.md
 
 

Repository files navigation

LoadingImageView

Loading Indicator for UIImageView written in Swift.

  • Simple to use
  • Handles network calls and background image decoding.
  • Background decoding of Images
  • Handles Error states and retrying download.
  • Handles offline caching. Coming soon.

demo

###Cocoapod

pod 'LoadingImageView'

###USAGE

As simple as

import LoadingImageView

let imageView = LoadingImageView()
view.addSubview(imageView)
let imageURL = NSURL(string: "https://catfishes.files.wordpress.com/2013/03/cat-breaded.jpg")
imageView.downloadImage(imageURL, placeholder: nil)

####API

var state: LoadingImageState 
weak var delegate: LoadingImageViewDelegate?
var inset: Float
var lineWidth: Float
var lineColor: UIColor    
var reloadImage: UIImage 

func downloadImage(URL: NSURL, placeholder:UIImage?)->NSURLSessionDownloadTask

####Delegate and State

enum LoadingImageState {
  case Idle
  case Downloading(NSURLSessionDownloadTask)
  case Errored(NSURLSessionDownloadTask, NSError)
}

protocol LoadingImageViewDelegate : NSObjectProtocol {
  func loadingImageViewStateChanged(imageView: LoadingImageView, state: LoadingImageState)
  func shouldAttemptRetry(imageView: LoadingImageView)->Bool
  func imageForReloadState(imageView: LoadingImageView)->UIImage
}

####Storyboard, Support for IBInspectable

About

Loading Indicator for UIImageView, written in Swift.

Resources

Readme
License
Activity

Stars

151 stars

Watchers

7 watching

Forks

11 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.