Notification Placeholder Image Caching (#1248)

* placeholder image caching

* code improvement

* code is now clearer
This commit is contained in:
Mauro
2023-07-05 14:28:45 +02:00
committed by GitHub
parent d15d0e0070
commit 29d90dd29e
4 changed files with 47 additions and 16 deletions
@@ -44,7 +44,8 @@ extension FileManager {
return newURL
}
@discardableResult
func writeDataToTemporaryDirectory(data: Data, fileName: String) throws -> URL {
let newURL = URL.temporaryDirectory.appendingPathComponent(fileName)