Move settings + generation to sheets
This commit is contained in:
32
CHDataManagement/Views/Settings/SettingsContentView.swift
Normal file
32
CHDataManagement/Views/Settings/SettingsContentView.swift
Normal file
@ -0,0 +1,32 @@
|
||||
import SwiftUI
|
||||
|
||||
struct SettingsContentView: View {
|
||||
|
||||
let section: SettingsSection
|
||||
|
||||
@EnvironmentObject
|
||||
private var content: Content
|
||||
|
||||
var body: some View {
|
||||
switch section {
|
||||
case .general:
|
||||
GeneralSettingsDetailView(generalSettings: content.settings.general)
|
||||
case .paths:
|
||||
PathSettingsView()
|
||||
case .navigationBar:
|
||||
NavigationBarSettingsView()
|
||||
case .postFeed:
|
||||
PostFeedSettingsView(postSettings: content.settings.posts)
|
||||
case .pages:
|
||||
PageSettingsDetailView(pageSettings: content.settings.pages)
|
||||
case .tagOverview:
|
||||
TagOverviewDetailView()
|
||||
case .audioPlayer:
|
||||
AudioSettingsDetailView(audioPlayer: content.settings.audioPlayer)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
SettingsContentView(section: .paths)
|
||||
}
|
Reference in New Issue
Block a user