Skip to content

Commit 62283e5

Browse files
committed
Apply suggestions from code review.
1 parent 004a924 commit 62283e5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Shared/Samples/Add clustering feature reduction to a point feature layer/AddClusteringFeatureReductionToAPointFeatureLayerView.Model.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ extension AddClusteringFeatureReductionToAPointFeatureLayerView {
120120
}
121121

122122
/// Creates a custom feature reduction for the sample.
123+
/// - Parameter renderer: A renderer for drawing clustered features.
123124
/// - Returns: A `ClusteringFeatureReduction` object.
124125
private static func makeCustomFeatureReduction(renderer: ClassBreaksRenderer) -> ClusteringFeatureReduction {
125126
// Create a new clustering feature reduction using the

Shared/Samples/Add clustering feature reduction to a point feature layer/AddClusteringFeatureReductionToAPointFeatureLayerView.SettingsView.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ extension AddClusteringFeatureReductionToAPointFeatureLayerView {
4242
Form {
4343
Section("Cluster Labels Visibility") {
4444
Toggle("Show Labels", isOn: $model.showsLabels)
45+
.toggleStyle(.switch)
4546
}
4647

4748
Section("Clustering Properties") {
@@ -79,10 +80,14 @@ extension AddClusteringFeatureReductionToAPointFeatureLayerView {
7980
}
8081
)
8182
}
82-
Text("Current Map Scale: \(mapViewScale.formatted(formatStyle))")
83+
HStack {
84+
Text("Current Map Scale")
85+
Spacer()
86+
Text(mapViewScale, format: formatStyle)
87+
.foregroundColor(.secondary)
88+
}
8389
}
8490
}
85-
.toggleStyle(.switch)
8691
}
8792
}
8893
}

0 commit comments

Comments
 (0)