Skip to content

Commit c3ce82f

Browse files
committed
fix: add a way to show/hide hidden folders on iPad
Signed-off-by: Tommy van der Vorst <tommy@pixelspark.nl>
1 parent 84951aa commit c3ce82f

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

Sushitrain/ContentView.swift

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -169,15 +169,26 @@ private struct ContentView: View {
169169
#endif
170170
#if os(iOS)
171171
.toolbar {
172-
Button(
173-
openInFilesAppLabel, systemImage: "arrow.up.forward.app",
174-
action: {
175-
let documentsUrl = FileManager.default.urls(
176-
for: .documentDirectory, in: .userDomainMask
177-
).first!
178-
openURLInSystemFilesApp(url: documentsUrl)
179-
}
180-
).labelStyle(.iconOnly)
172+
ToolbarItem {
173+
Button(
174+
openInFilesAppLabel, systemImage: "arrow.up.forward.app",
175+
action: {
176+
let documentsUrl = FileManager.default.urls(
177+
for: .documentDirectory, in: .userDomainMask
178+
).first!
179+
openURLInSystemFilesApp(url: documentsUrl)
180+
}
181+
).labelStyle(.iconOnly)
182+
}
183+
184+
ToolbarItem {
185+
Menu(
186+
content: {
187+
FolderMetricPickerView(userSettings: appState.userSettings)
188+
},
189+
label: { Image(systemName: "ellipsis.circle").accessibilityLabel(Text("Menu")) }
190+
).labelStyle(.iconOnly)
191+
}
181192
}
182193
#endif
183194
},

0 commit comments

Comments
 (0)