Rename interaction blocking property (IOS-168)
This commit is contained in:
parent
d77e8d1eac
commit
4b89d6eef0
|
@ -43,7 +43,7 @@ struct PrivacySafetyView: View {
|
|||
|
||||
var body: some View {
|
||||
Group {
|
||||
if !viewModel.isInitialized {
|
||||
if !viewModel.isUserInteractionEnabled {
|
||||
ProgressView()
|
||||
} else {
|
||||
Form {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue