diff options
| author | Fuwn <[email protected]> | 2026-04-01 13:59:52 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-04-01 13:59:52 +0000 |
| commit | ddaa9cbfe0cc8d254d4901ad192918d91dd627d4 (patch) | |
| tree | b0d1cf6642ae97ce41ff570f2bcd4a06b359685e /Sora/Views/Settings/Section/SettingsSectionContentRatingsView.swift | |
| parent | Fix iOS install recipe app path resolution (diff) | |
| download | sora-testing-ddaa9cbfe0cc8d254d4901ad192918d91dd627d4.tar.xz sora-testing-ddaa9cbfe0cc8d254d4901ad192918d91dd627d4.zip | |
Migrate settings manager to Swift Observation
Diffstat (limited to 'Sora/Views/Settings/Section/SettingsSectionContentRatingsView.swift')
| -rw-r--r-- | Sora/Views/Settings/Section/SettingsSectionContentRatingsView.swift | 5 |
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()) } |