diff --git a/Mastodon/Scene/Settings/Privacy and Safety/PrivacySafetyViewController.swift b/Mastodon/Scene/Settings/Privacy and Safety/PrivacySafetyViewController.swift index 081733915..271c500a5 100644 --- a/Mastodon/Scene/Settings/Privacy and Safety/PrivacySafetyViewController.swift +++ b/Mastodon/Scene/Settings/Privacy and Safety/PrivacySafetyViewController.swift @@ -43,7 +43,7 @@ struct PrivacySafetyView: View { var body: some View { Group { - if !viewModel.isInitialized { + if !viewModel.isUserInteractionEnabled { ProgressView() } else { Form { diff --git a/Mastodon/Scene/Settings/Privacy and Safety/PrivacySafetyViewModel.swift b/Mastodon/Scene/Settings/Privacy and Safety/PrivacySafetyViewModel.swift index 67d964a3c..de2cd8cd2 100644 --- a/Mastodon/Scene/Settings/Privacy and Safety/PrivacySafetyViewModel.swift +++ b/Mastodon/Scene/Settings/Privacy and Safety/PrivacySafetyViewModel.swift @@ -84,12 +84,12 @@ class PrivacySafetyViewModel: ObservableObject { } private var doNotEvaluate = true - @Published var isInitialized = false + @Published var isUserInteractionEnabled = false let onDismiss = PassthroughSubject() func viewDidAppear() { doNotEvaluate = false - if !isInitialized { + if !isUserInteractionEnabled { loadSettings() } } @@ -151,7 +151,7 @@ extension PrivacySafetyViewModel { suggestMyAccountToOthers = account.discoverable == true appearInSearches = account.indexable == true - isInitialized = true + isUserInteractionEnabled = true } }