diff --git a/apps/ios/GuideDogs/Code/Data/Authored Activities/AuthoredActivityLoader.swift b/apps/ios/GuideDogs/Code/Data/Authored Activities/AuthoredActivityLoader.swift index 8b87bd40..13008e06 100644 --- a/apps/ios/GuideDogs/Code/Data/Authored Activities/AuthoredActivityLoader.swift +++ b/apps/ios/GuideDogs/Code/Data/Authored Activities/AuthoredActivityLoader.swift @@ -512,7 +512,7 @@ class AuthoredActivityLoader { for (wptIndex, waypoint) in content.waypoints.enumerated() { for (clipIndex, image) in waypoint.images.enumerated() { - guard let key = manager.cacheKey(for: image.url), await manager.imageCache.containsImage(forKey: key, cacheType: .all) == .none else { + guard let key = manager.cacheKey(for: image.url), await manager.imageCache.containsImage!(forKey: key, cacheType: .all) == .none else { GDLogInfo(.authoredContent, "Image \(image.url.lastPathComponent) already cached (waypoint: \(wptIndex), clip: \(clipIndex))") continue } @@ -554,7 +554,7 @@ class AuthoredActivityLoader { for image in images { if let key = manager.cacheKey(for: image) { - manager.imageCache.removeImage(forKey: key, cacheType: .all) + manager.imageCache.removeImage!(forKey: key, cacheType: .all) } } }