gs

GiFHUD-Swift

progress hud for displaying only animated gif images implemented with swift

Showing:

Popularity

Downloads/wk

0

GitHub Stars

71

Maintenance

Last Commit

3yrs ago

Contributors

4

Package

Dependencies

0

License

MIT

Categories

Readme

GiFHUD-Swift

progress hud with ability to display gif images implemented with swift

Demo

alt tag

Install

pod 'GiFHUD-Swift'

Usage

  • import GIFHUD
  • Add your gif file or image sequance files to your project.
// Setup gif image
GIFHUD.shared.setGif("pika.gif")
GIFHUD.shared.show()

Thats it!

Just use GIFHUD.shared.show(with overlay:duration:) for showing the hud.
GIFHUD.shared.dismiss() for dismissing the hud.

public func setGif(named: String)
public func setGif(bundle: NSBundle)
public func SetGif(images: [UIImage])

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

Optional values

var size            : CGFloat           = 150
var fadeDuration    : TimeInterval      = 0.3
var gifSpeed        : CGFloat           = 0.3
var 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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial