Skip to content

Commit

Permalink
bugfix: animation
Browse files Browse the repository at this point in the history
Signed-off-by: 82Flex <[email protected]>
  • Loading branch information
Lessica committed Jul 23, 2024
1 parent 7a37824 commit 5e8b12a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
18 changes: 10 additions & 8 deletions TrollFools/AppListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ final class AppListModel: ObservableObject {
private static func fetchApplications(_ hasTrollRecorder: inout Bool, _ unsupportedCount: inout Int) -> [App] {
let allApps: [App] = LSApplicationWorkspace.default()
.allApplications()
.compactMap {
guard let id = $0.applicationIdentifier(),
let url = $0.bundleURL(),
let teamID = $0.teamID(),
let appType = $0.applicationType(),
let localizedName = $0.localizedName(),
let shortVersionString = $0.shortVersionString()
.compactMap { proxy in
guard let id = proxy.applicationIdentifier(),
let url = proxy.bundleURL(),
let teamID = proxy.teamID(),
let appType = proxy.applicationType(),
let localizedName = proxy.localizedName(),
let shortVersionString = proxy.shortVersionString()
else {
return nil
}
Expand Down Expand Up @@ -373,7 +373,9 @@ struct AppListView: View {
if #available(iOS 15.0, *) {
appList
.refreshable {
vm.reload()
withAnimation {
vm.reload()
}
}
.searchable(
text: $vm.filter.searchKeyword,
Expand Down
1 change: 1 addition & 0 deletions TrollFools/LSApplicationProxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- (NSArray<LSPlugInKitProxy *> *)plugInKitPlugins;

- (BOOL)isRemoveableSystemApp;
- (BOOL)isRemovedSystemApp;

@end

Expand Down

0 comments on commit 5e8b12a

Please sign in to comment.