We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 207afd9 + ad91ea5 commit 81e48beCopy full SHA for 81e48be
1 file changed
StikJIT/Utilities/AppStoreIconFetcher.swift
@@ -19,15 +19,19 @@ class AppStoreIconFetcher {
19
return
20
}
21
22
- iconFetchDispatchQueue.sync {
+ iconFetchDispatchQueue.async {
23
do {
24
let ans = try JITEnableContext.shared.getAppIcon(withBundleId: bundleID)
25
- iconCache[bundleID] = ans
26
- completion(ans)
+ DispatchQueue.main.async {
+ iconCache[bundleID] = ans
27
+ completion(ans)
28
+ }
29
} catch {
30
print("Failed to get icon: \(error)")
- completion(nil)
31
32
+ completion(nil)
33
34
35
36
-}
37
+}
0 commit comments