dmytro-anokhin / url-image

AsyncImage before iOS 15. Lightweight, pure SwiftUI Image view, that displays an image downloaded from URL, with auxiliary views and local cache.
MIT License
1.1k stars 96 forks source link

Remove corrupted temporary files #134

Open dmytro-anokhin opened 3 years ago

dmytro-anokhin commented 3 years ago

Is your feature request related to a problem? Please describe. Remove not an image/corrupted temporary files

Describe the solution you'd like When an image can not be decoded temporary file should be removed. There is no point to grow caches folder.

Describe alternatives you've considered Because the package uses cached directory, temporary files removed by system. Alternative is to keep it as is.