Swift - How to save memory using AlamofireImage/ImageShack?
I'm using Alamofire , AlamofireImage to cache images using ImageShack storage with Firebase backend. Sometimes memory comes over 100MB. I want to learn how to improve my image caching and well scaling before uploading. For example I have declared one common cache in class whole project using that AutoPurgingImageCache : let photoCache = AutoPurgingImageCache( memoryCapacity: 100 * 1024 * 1024, preferredMemoryUsageAfterPurge: 60 * 1024 * 1024 ) Is there any way to define these memoryCapacity , preferredMemoryUsageAfterPurge to save memory? What do they mean exactly? I'm using below Alamofire