paint-brush
Image Caching In Swift 4 using NSCache()by@wongandydev
22,074 reads
22,074 reads

Image Caching In Swift 4 using NSCache()

by Andy Wong2mJuly 26th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

To get image caching in Swift isn’t too hard. But why do it yourself with NSCache when you can just do it with a framework? A simple Google search for caching on Swift brings you to Kingfisher and Nuke. Which are both frameworks for caching. But I like to use native whenever I can. It helps me understand at a deeper level what is going on, especially when you look into these frameworks. I noticed that what they use is also NSCache. So let’s get started.

People Mentioned

Mention Thumbnail

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Image Caching In Swift 4 using NSCache()
Andy Wong HackerNoon profile picture
Andy Wong

Andy Wong

@wongandydev

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite