Skip to content

Commit 01849af

Browse files
authored
Merge pull request #236 from Esri/des12437/Clicking-anywhere-on-the-cell-is-not-working
[Fix] Clicking anywhere on the cell is not working in Analyze network with subnetwork trace sample
2 parents 8fbbd1c + bfe3977 commit 01849af

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Shared/Samples/Analyze network with subnetwork trace/AnalyzeNetworkWithSubnetworkTraceView.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ struct AnalyzeNetworkWithSubnetworkTraceView: View {
116116
Spacer()
117117
Button {
118118
isConditionMenuPresented = true
119+
inputValue = nil
119120
} label: {
120121
Image(systemName: "plus")
121122
.imageScale(.large)
@@ -254,8 +255,8 @@ struct AnalyzeNetworkWithSubnetworkTraceView: View {
254255
List(model.possibleAttributes, id: \.name) { attribute in
255256
HStack {
256257
Text(attribute.name)
258+
Spacer()
257259
if attribute === selectedAttribute {
258-
Spacer()
259260
Image(systemName: "checkmark")
260261
.foregroundColor(.accentColor)
261262
}
@@ -273,8 +274,8 @@ struct AnalyzeNetworkWithSubnetworkTraceView: View {
273274
List(UtilityNetworkAttributeComparison.Operator.allCases, id: \.self) { comparison in
274275
HStack {
275276
Text(comparison.title)
277+
Spacer()
276278
if comparison == selectedComparison {
277-
Spacer()
278279
Image(systemName: "checkmark")
279280
.foregroundColor(.accentColor)
280281
}
@@ -294,8 +295,8 @@ struct AnalyzeNetworkWithSubnetworkTraceView: View {
294295
List(domain.codedValues, id: \.name) { value in
295296
HStack {
296297
Text(value.name)
298+
Spacer()
297299
if value === selectedValue as? CodedValue {
298-
Spacer()
299300
Image(systemName: "checkmark")
300301
.foregroundColor(.accentColor)
301302
}

0 commit comments

Comments
 (0)