Skip to content

Commit

Permalink
Add animations back
Browse files Browse the repository at this point in the history
  • Loading branch information
BPerlakiH committed Feb 18, 2025
1 parent b87ad35 commit 97412d7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Views/Library/ZimFilesNew.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ private final class ViewModel: ObservableObject {
}
}
}
await MainActor.run { self.zimFiles = newZimFiles }
await MainActor.run {
withAnimation(.easeInOut) {
self.zimFiles = newZimFiles
}
}
}

private static func buildPredicate(searchText: String, languageCodes: Set<String>) -> NSPredicate {
Expand Down Expand Up @@ -112,6 +116,7 @@ struct ZimFilesNew: View {
},
zimFile: zimFile,
dismiss: dismiss)
.transition(AnyTransition.opacity)
}
}
.modifier(GridCommon())
Expand Down

0 comments on commit 97412d7

Please sign in to comment.