Setting for player sidebar

This commit is contained in:
Arkadiusz Fal
2021-11-04 00:00:17 +01:00
parent f8e6560698
commit c69d60f3ee
7 changed files with 129 additions and 71 deletions

View File

@@ -5,7 +5,7 @@ import SwiftUI
struct SettingsView: View {
#if os(macOS)
private enum Tabs: Hashable {
case playback, services, instances
case instances, playback, services
}
#endif
@@ -24,14 +24,6 @@ struct SettingsView: View {
}
.tag(Tabs.instances)
Form {
ServicesSettings()
}
.tabItem {
Label("Services", systemImage: "puzzlepiece.extension")
}
.tag(Tabs.services)
Form {
PlaybackSettings()
}
@@ -39,6 +31,14 @@ struct SettingsView: View {
Label("Playback", systemImage: "play.rectangle.on.rectangle.fill")
}
.tag(Tabs.playback)
Form {
ServicesSettings()
}
.tabItem {
Label("Services", systemImage: "puzzlepiece.extension")
}
.tag(Tabs.services)
}
.padding(20)
.frame(width: 400, height: 310)
@@ -49,8 +49,8 @@ struct SettingsView: View {
AccountSelectionView()
#endif
InstancesSettings()
ServicesSettings()
PlaybackSettings()
ServicesSettings()
}
.navigationTitle("Settings")
.toolbar {