CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

PHImageKit 1.1

PHImageKit 1.1

TestsTested βœ“
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2016
SwiftSwift Version 3.0
SPMSupports SPM βœ—

Maintained by Vlad--description=PHImageKit Initial Trunk.



  • By
  • Product Hunt

PHImageKit(ty) 😺

PHImageKit is simple yet powerful image downloading, caching and GIF playback framework.

  • Download an image or GIF and display it with just a single call
  • Caches both in memory and in file storage
  • Plays multiple GIFs simultaneously
  • Eliminates delays or blocking during the first playback loop of GIFs
  • Written in Swift

PHImageKit is the component that powers all the images and GIFs in the Product Hunt iOS App 😻

Usage

Replace your usage of UIImageView with PHImageView. Then simply pass your image url.

imageView.url = NSURL(string: "http://your_image_url.png")!

And that’s it. πŸš€

Options

You can configure the appearance of PHImageView

Parameter Description Defined in Default state
showLoadingIndicator Shows a loading indicator during download PHImageView true
animatedTransition Cross dissolve animated transition PHImageView true
setCacheSize Set max file and memory cache size in MB PHManager memory : 50mb file : 250mb

Requirements

iOS 8.0+ Xcode 7.0 or above

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Run the tests
  6. Create new Pull Request

To Do

  • Add ability to set placeholder image
  • Objective C compatibility
  • UserPlay for GIFs

Inspirations

Contributors

License

Product Hunt

 _________________
< The MIT License >
 -----------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

MIT License