Thanks to visit codestin.com
Credit goes to github.com

Skip to content

vincent-lewis/GiFHUD-Swift

 
 

Repository files navigation

GiFHUD-Swift

progress hud with ability to display gif images implemented with swift

Demo

alt tag

Usage

Copy & paste the GiFHUD.swift to your project.
Add your gif file or image sequance files to your project.

//Setup GiFHUD image
GiFHUD.setGif("pika.gif")
GiFHUD.show()

Thats it !

Just use GiFHUD.show() or GiFHUD.showWithOverlay() for showing the hud.
GiFHUD.dismiss() for dismissing the hud.

class func setGif (name: String)
class func setGif (bundle: NSBundle)
class func SetGif (images: Array<UIImage>)

You can set your gif with giving its String name, NSBundle url or Array of UIImages.

Optional values

let Size            : CGFloat           = 150
let FadeDuration    : NSTimeInterval    = 0.3
let GifSpeed        : CGFloat           = 0.3
let OverlayAlpha    : CGFloat           = 0.3

If you want to customise the looking just edit these values

Credits

The animated gif to UIImage swift library i used:
https://github.com/kaishin/gifu

About

progress hud for displaying only animated gif images implemented with swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 70.5%
  • Ruby 29.5%