Skip to content

Commit 13ce56e

Browse files
committed
Remove unused Boolean.
#657 (comment)
1 parent 9d45cf9 commit 13ce56e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Shared/Samples/Edit features using feature forms/EditFeaturesUsingFeatureFormsView.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ struct EditFeaturesUsingFeatureFormsView: View {
3737
/// A Boolean value indicating whether the discard edits alert is presented.
3838
@State private var isShowingDiscardEditsAlert = false
3939

40-
/// A Boolean value indicating whether any edits have been made to the feature form.
41-
@State private var hasEdits = false
42-
4340
/// A Boolean value indicating whether the feature form has any validation errors.
4441
@State private var hasValidationErrors = false
4542

@@ -121,13 +118,6 @@ struct EditFeaturesUsingFeatureFormsView: View {
121118
fatalError("Unknown form editing event: \(event)")
122119
}
123120
}
124-
.task {
125-
defer { hasEdits = false }
126-
127-
for await hasEdits in featureForm.$hasEdits {
128-
self.hasEdits = hasEdits
129-
}
130-
}
131121
.task {
132122
defer { hasValidationErrors = false }
133123

0 commit comments

Comments
 (0)