add an auto reverses button

This commit is contained in:
leminlimez committed 2025-06-11 22:00:46 -04:00
1 parent b782d6c7a2
commit 1eab5e5476
2 files changed
+19 -1

No files matched your search

@@ -43,6 +43,7 @@ struct LoadInfo: Identifiable, Equatable {
}
var id = UUID()
var autoReverses: Bool = false
var loadState: LoadState
}
@@ -226,7 +227,7 @@ class PosterBoardManager: ObservableObject {
switch video.loadState {
case .loaded(let movie):
do {
let newVideo = try VideoHandler.createCaml(from: movie.url, autoReverses: false)
let newVideo = try VideoHandler.createCaml(from: movie.url, autoReverses: video.autoReverses)
extList["com.apple.WallpaperKit.CollectionsPoster"]?.append(newVideo)
} catch {
print(error.localizedDescription)