You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Geranium/Cleaner/CustomPaths.swift
+17-1
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,9 @@ struct CustomPaths: View {
16
16
NavigationView{
17
17
List{
18
18
ForEach(paths, id: \.self){ path in
19
-
Text(path)
19
+
withAnimation{
20
+
Text(path)
21
+
}
20
22
}
21
23
.onDelete(perform: deletePaths)
22
24
}
@@ -26,6 +28,20 @@ struct CustomPaths: View {
26
28
.font(.title2)
27
29
.bold()
28
30
}
31
+
ToolbarItem(placement:.navigationBarTrailing){
32
+
Button(action:{
33
+
UIApplication.shared.confirmAlert(title:"Are you sure you want to erase all your custom paths ?", body:"This won't clean them but will erase them from your list.", onOK:{
34
+
paths =[]
35
+
savePaths()
36
+
}, noCancel:false)
37
+
}){
38
+
if !paths.isEmpty {
39
+
withAnimation{
40
+
Text("Clear")
41
+
}
42
+
}
43
+
}
44
+
}
29
45
ToolbarItem(placement:.navigationBarTrailing){
30
46
Button(action:{
31
47
UIApplication.shared.TextFieldAlert(title:"Enter a path you want to add to your list :", textFieldPlaceHolder:"/var/mobile/DCIM/"){ chemin in
0 commit comments