SkillAgentSearch skills...

DPImageCache

Swift extension for UIImageView. Help loading image asynchronously and store local file cache.

Install / Use

/learn @dphans/DPImageCache
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

DPImageCache

Swift extension for UIImageView. Help loading image asynchronously and store local file cache.

Features

  • Load image asynchronously.
  • Cache local file-based.

alt tag

How to use

  • Import DPImageCache.swift

  • Simple code like this:

    let imgAddress = "http://blabla.com/blabla.png"
    imgView.setImageCacheWithAddress(
            imgAddress,
            placeHolderImage: UIImage(named: "placeHolderImage")!)
  • Clean cache files:
        DPImageCache.cleanCace()

Contact

www: https://dphans.me email: baophan94@icloud.com

View on GitHub
GitHub Stars87
CategoryDevelopment
Updated2y ago
Forks4

Languages

Swift

Security Score

65/100

Audited on May 25, 2023

No findings