Rename interaction blocking property (IOS-168)

This commit is contained in:
Marcus Kida 2024-05-30 12:02:20 +02:00
parent d77e8d1eac
commit 4b89d6eef0
No known key found for this signature in database
GPG Key ID: 19FF64E08013CA40
2 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@ struct PrivacySafetyView: View {
var body: some View {
Group {
if !viewModel.isInitialized {
if !viewModel.isUserInteractionEnabled {
ProgressView()
} else {
Form {

View File

@ -84,12 +84,12 @@ class PrivacySafetyViewModel: ObservableObject {
}
private var doNotEvaluate = true
@Published var isInitialized = false
@Published var isUserInteractionEnabled = false
let onDismiss = PassthroughSubject<Void, Never>()
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
}
}