Skip to content

Commit 5e8b12a

Browse files
committed
bugfix: animation
Signed-off-by: 82Flex <[email protected]>
1 parent 7a37824 commit 5e8b12a

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

TrollFools/AppListView.swift

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ final class AppListModel: ObservableObject {
110110
private static func fetchApplications(_ hasTrollRecorder: inout Bool, _ unsupportedCount: inout Int) -> [App] {
111111
let allApps: [App] = LSApplicationWorkspace.default()
112112
.allApplications()
113-
.compactMap {
114-
guard let id = $0.applicationIdentifier(),
115-
let url = $0.bundleURL(),
116-
let teamID = $0.teamID(),
117-
let appType = $0.applicationType(),
118-
let localizedName = $0.localizedName(),
119-
let shortVersionString = $0.shortVersionString()
113+
.compactMap { proxy in
114+
guard let id = proxy.applicationIdentifier(),
115+
let url = proxy.bundleURL(),
116+
let teamID = proxy.teamID(),
117+
let appType = proxy.applicationType(),
118+
let localizedName = proxy.localizedName(),
119+
let shortVersionString = proxy.shortVersionString()
120120
else {
121121
return nil
122122
}
@@ -373,7 +373,9 @@ struct AppListView: View {
373373
if #available(iOS 15.0, *) {
374374
appList
375375
.refreshable {
376-
vm.reload()
376+
withAnimation {
377+
vm.reload()
378+
}
377379
}
378380
.searchable(
379381
text: $vm.filter.searchKeyword,

TrollFools/LSApplicationProxy.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
- (NSArray<LSPlugInKitProxy *> *)plugInKitPlugins;
2929

3030
- (BOOL)isRemoveableSystemApp;
31+
- (BOOL)isRemovedSystemApp;
3132

3233
@end
3334

0 commit comments

Comments
 (0)