summaryrefslogtreecommitdiff
path: root/Sora/Views/Settings/Section/SettingsSectionContentRatingsView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Sora/Views/Settings/Section/SettingsSectionContentRatingsView.swift')
-rw-r--r--Sora/Views/Settings/Section/SettingsSectionContentRatingsView.swift5
1 files changed, 3 insertions, 2 deletions
diff --git a/Sora/Views/Settings/Section/SettingsSectionContentRatingsView.swift b/Sora/Views/Settings/Section/SettingsSectionContentRatingsView.swift
index 40a8a7e..353824a 100644
--- a/Sora/Views/Settings/Section/SettingsSectionContentRatingsView.swift
+++ b/Sora/Views/Settings/Section/SettingsSectionContentRatingsView.swift
@@ -1,7 +1,8 @@
import SwiftUI
struct SettingsSectionContentRatingsView: View {
- @EnvironmentObject var settings: SettingsManager
+ @Environment(SettingsManager.self)
+ private var settings
var body: some View {
List {
@@ -70,5 +71,5 @@ struct SettingsSectionContentRatingsView: View {
#Preview {
SettingsSectionContentRatingsView()
- .environmentObject(SettingsManager())
+ .environment(SettingsManager())
}