Skip to content

Commit 1ee3640

Browse files
committed
Extract Shortcuts to own settings tab
1 parent 6fd0dbc commit 1ee3640

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

MobCrew/MobCrew/Features/Settings/SettingsView.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ struct SettingsView: View {
1414
.tabItem {
1515
Label("Breaks", systemImage: "cup.and.saucer")
1616
}
17+
18+
ShortcutsSettingsTab()
19+
.tabItem {
20+
Label("Shortcuts", systemImage: "keyboard")
21+
}
1722
}
1823
.frame(width: 450, height: 320)
1924
}
@@ -57,6 +62,15 @@ private struct GeneralSettingsTab: View {
5762
))
5863
}
5964

65+
66+
}
67+
.formStyle(.grouped)
68+
}
69+
}
70+
71+
private struct ShortcutsSettingsTab: View {
72+
var body: some View {
73+
Form {
6074
Section("Keyboard Shortcuts") {
6175
ShortcutRow(shortcut: "⌘⇧L", description: "Toggle floating timer", note: "Global")
6276
ShortcutRow(shortcut: "⌘↩", description: "Start/Pause timer")

0 commit comments

Comments
 (0)