2021-07-07 22:39:18 +00:00
|
|
|
import Defaults
|
|
|
|
import SwiftUI
|
|
|
|
|
|
|
|
struct OptionsView: View {
|
2021-09-25 08:18:22 +00:00
|
|
|
@EnvironmentObject<NavigationModel> private var navigation
|
2021-07-07 22:39:18 +00:00
|
|
|
|
2021-07-11 20:52:49 +00:00
|
|
|
@Environment(\.dismiss) private var dismiss
|
2021-07-07 22:39:18 +00:00
|
|
|
|
|
|
|
var body: some View {
|
|
|
|
HStack {
|
|
|
|
VStack {
|
|
|
|
HStack {
|
|
|
|
Spacer()
|
|
|
|
|
|
|
|
VStack(alignment: .leading) {
|
|
|
|
Spacer()
|
|
|
|
|
2021-07-08 15:14:54 +00:00
|
|
|
CoverSectionView("View Options") {
|
2021-09-26 22:28:42 +00:00
|
|
|
// CoverSectionRowView("Show videos as") { nextLayoutButton }
|
2021-07-07 22:39:18 +00:00
|
|
|
}
|
|
|
|
|
2021-07-08 15:14:54 +00:00
|
|
|
CoverSectionView(divider: false) {
|
|
|
|
CoverSectionRowView("Close View Options") { Button("Close") { dismiss() } }
|
2021-07-07 22:39:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Spacer()
|
2021-09-25 08:18:22 +00:00
|
|
|
|
|
|
|
SettingsView()
|
2021-07-07 22:39:18 +00:00
|
|
|
}
|
|
|
|
.frame(maxWidth: 800)
|
|
|
|
|
|
|
|
Spacer()
|
|
|
|
}
|
|
|
|
|
|
|
|
Spacer()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.background(.thinMaterial)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
struct OptionsView_Previews: PreviewProvider {
|
|
|
|
static var previews: some View {
|
|
|
|
OptionsView()
|
|
|
|
}
|
|
|
|
}
|