Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(glance): let the Apple card cache honour the file manager it was handed

nirholasa132063cf882
diff --git a/apple/GlanceKit/GlanceCache.swift b/apple/GlanceKit/GlanceCache.swift
index e4427c7c3..3e6a3f67f 100644
--- a/apple/GlanceKit/GlanceCache.swift
+++ b/apple/GlanceKit/GlanceCache.swift
@@ -9,8 +9,10 @@ import Foundation
/// truncated PNG.
struct GlanceCache {
private let directory: URL
+ private let fileManager: FileManager
init?(fileManager: FileManager = .default) {
+ self.fileManager = fileManager
let base: URL?
if let group = GlanceConfig.appGroup {
base = fileManager.containerURL(forSecurityApplicationGroupIdentifier: group)
@@ -46,7 +48,7 @@ struct GlanceCache {
func clear() {
for size in GlanceSize.allCases {
for theme in GlanceTheme.allCases {
- try? FileManager.default.removeItem(at: url(size: size, theme: theme))
+ try? fileManager.removeItem(at: url(size: size, theme: theme))
}
}
}