PHImageKit

简单而强大的图像下载、缓存和GIF播放框架。(Simple yet powerful image downloading, caching and GIF playback framework.)

Github星跟蹤圖

Build Status
CocoaPods Version

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 ?

Installation

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C and swift, which automates and simplifies the process of using 3rd-party libraries like PHImageKit.

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

pod 'PHImageKit'

Then, run the following command:

$ pod install

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](https://github.com/producthunt/PHImageKit/blob/master/LICENSE)**

主要指標

概覽
名稱與所有者producthunt/PHImageKit
主編程語言Swift
編程語言Swift (語言數: 3)
平台iOS
許可證MIT License
所有者活动
創建於2016-01-20 13:29:39
推送於2016-11-16 10:29:51
最后一次提交2016-11-16 12:29:25
發布數10
最新版本名稱1.1 (發布於 )
第一版名稱v0.1 (發布於 )
用户参与
星數97
關注者數47
派生數5
提交數43
已啟用問題?
問題數1
打開的問題數0
拉請求數10
打開的拉請求數0
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?