Skip to content

geoleo751/Swift_Image_Caching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

Swift_Image_Caching

4.2 MIT

Easy way to download and cache Images from the internet to use them in your iOS projects. Written in Swift

Installation

Manual:

  • drag 'n drop everything in Image Caching folder into your project.

Usage

When you need to download an UIImage and set it to your UIImageView call the methor "setImage" from your UIImageView.

If the image is previously downloaded and exists in cache, it is set immediately. Otherwise a network call is made with the given imageURL to fetch the image data.

  yourImageView.setImage(withImageURL: imageUrl, placehoder: #imageLiteral(resourceName: "placeholder"), toBeCahced: true)

Parameters:

  • imageURL: The URL of the image that needs to be retrieved (String)
  • placehoder: A placeholder for the image (UIImage)
  • toBeCahced: Boolean value if image needs to be cached (Bool)

Authors

  • George Leonidas

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Image downloading and caching for iOS written in Swift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages