I have all images loaded on my app via SDWebImage. The downloading and caching works great, but I wanted to make a button that can clear all cached images in the entire app.
import SDWebImage SDImageCache.shared.clearMemory() SDImageCache.shared.clearDisk()