Skip to content

Commit 62e4b42

Browse files
committed
Fix row selection bug
1 parent 8fbbd1c commit 62e4b42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ struct AnalyzeNetworkWithSubnetworkTraceView: View {
254254
List(model.possibleAttributes, id: \.name) { attribute in
255255
HStack {
256256
Text(attribute.name)
257+
Spacer()
257258
if attribute === selectedAttribute {
258-
Spacer()
259259
Image(systemName: "checkmark")
260260
.foregroundColor(.accentColor)
261261
}
@@ -273,8 +273,8 @@ struct AnalyzeNetworkWithSubnetworkTraceView: View {
273273
List(UtilityNetworkAttributeComparison.Operator.allCases, id: \.self) { comparison in
274274
HStack {
275275
Text(comparison.title)
276+
Spacer()
276277
if comparison == selectedComparison {
277-
Spacer()
278278
Image(systemName: "checkmark")
279279
.foregroundColor(.accentColor)
280280
}
@@ -294,8 +294,8 @@ struct AnalyzeNetworkWithSubnetworkTraceView: View {
294294
List(domain.codedValues, id: \.name) { value in
295295
HStack {
296296
Text(value.name)
297+
Spacer()
297298
if value === selectedValue as? CodedValue {
298-
Spacer()
299299
Image(systemName: "checkmark")
300300
.foregroundColor(.accentColor)
301301
}

0 commit comments

Comments
 (0)