diff options
Diffstat (limited to 'Sora/Views/Settings/Section/SettingsSectionContentRatingsView.swift')
| -rw-r--r-- | Sora/Views/Settings/Section/SettingsSectionContentRatingsView.swift | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Sora/Views/Settings/Section/SettingsSectionContentRatingsView.swift b/Sora/Views/Settings/Section/SettingsSectionContentRatingsView.swift index 85b28af..353824a 100644 --- a/Sora/Views/Settings/Section/SettingsSectionContentRatingsView.swift +++ b/Sora/Views/Settings/Section/SettingsSectionContentRatingsView.swift @@ -1,11 +1,12 @@ import SwiftUI struct SettingsSectionContentRatingsView: View { - @EnvironmentObject var settings: SettingsManager + @Environment(SettingsManager.self) + private var settings var body: some View { List { - Section(header: Text("Display Content Ratings")) { + Section("Show Ratings") { ForEach(BooruRating.allCases, id: \.self) { rating in Toggle( rating.rawValue, @@ -25,7 +26,7 @@ struct SettingsSectionContentRatingsView: View { } } - Section(header: Text("Blur Content Ratings")) { + Section("Blur Ratings") { ForEach(BooruRating.allCases, id: \.self) { rating in Toggle( rating.rawValue, @@ -43,7 +44,7 @@ struct SettingsSectionContentRatingsView: View { } } } - .navigationTitle(Text("Content Filtering")) + .navigationTitle(Text("Sensitive Content")) #if !os(macOS) .navigationBarTitleDisplayMode(.inline) #endif @@ -70,5 +71,5 @@ struct SettingsSectionContentRatingsView: View { #Preview { SettingsSectionContentRatingsView() - .environmentObject(SettingsManager()) + .environment(SettingsManager()) } |