Skip to content

Commit 9e7652d

Browse files
committed
Remove unused CGFloat.
1 parent 268525c commit 9e7652d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ extension AddClusteringFeatureReductionToAPointFeatureLayerView {
4545

4646
/// The maximum scale of feature clusters.
4747
/// - Note: The default value for max scale is 0.
48-
var maxScale: CGFloat {
48+
var maxScale: Double {
4949
didSet {
5050
clusteringFeatureReduction.maxScale = maxScale
5151
}
@@ -54,7 +54,7 @@ extension AddClusteringFeatureReductionToAPointFeatureLayerView {
5454
/// The radius of feature clusters.
5555
/// - Note: The default value for cluster radius is 60.
5656
/// Larger radius allows more features to be grouped into a cluster.
57-
var radius: CGFloat {
57+
var radius: Double {
5858
didSet {
5959
clusteringFeatureReduction.radius = radius
6060
}
@@ -63,8 +63,8 @@ extension AddClusteringFeatureReductionToAPointFeatureLayerView {
6363
init() {
6464
// Set initial values for controls.
6565
showsLabels = clusteringFeatureReduction.showsLabels
66-
radius = CGFloat(clusteringFeatureReduction.radius)
67-
maxScale = CGFloat(clusteringFeatureReduction.maxScale ?? .zero)
66+
radius = clusteringFeatureReduction.radius
67+
maxScale = clusteringFeatureReduction.maxScale ?? .zero
6868
}
6969

7070
func setup() async throws {

0 commit comments

Comments
 (0)