Skip to content

이미지 다운로드 및 캐싱 기능을 구현한 라이브러리 🐿

License

Notifications You must be signed in to change notification settings

jeon-soyeong/Acorn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Acorn 앱아이콘

Language Platform Lisence

Acorn helps to download and cache Image.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 13.0+

Installation

Acorn is available through CocoaPods. To install it, simply add the following line to your Podfile:

Pod 'Acorn'

Usage

imageView.setImage(with: url)

  • Placeholder
imageView.setImage(with: url, placeholder: UIImage(named: "placeholderImage")

  • Configuration
    • maximumMemoryBytes
    • maximumDiskBytes
    • expiration: seconds, days, date
AcornManager.shared.configureCache(maximumMemoryBytes: 10485760, 
                                   maximumDiskBytes: 10485760, 
                                   expiration: .days(7))

Author

So Yeong Jeon, [email protected]

License

Acorn is available under the MIT license. See the LICENSE file for more info.

About

이미지 다운로드 및 캐싱 기능을 구현한 라이브러리 🐿

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published