From 02d7c31175dc140e15398be9d32662aaa9270af7 Mon Sep 17 00:00:00 2001 From: "Daniel W. Steinbrook" Date: Sun, 8 Sep 2024 11:57:20 -0400 Subject: [PATCH] Revert changes to AuthoredActivityLoader.swift --- .../Data/Authored Activities/AuthoredActivityLoader.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } } }