Skip to content

Commit de27702

Browse files
Apply suggestions from code review
Co-authored-by: Zachary Kline <[email protected]>
1 parent 35516aa commit de27702

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Shared/Samples/Show geodesic sector and ellipse/ShowGeodesicSectorAndEllipseView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct ShowGeodesicSectorAndEllipseView: View {
2020
@State private var model = Model()
2121

2222
/// Manages the presentation state of the menu.
23-
@State private var isPresented: Bool = false
23+
@State private var isPresented = false
2424

2525
/// The menu which holds the options that change the ellipse and sector.
2626
private var settingsSheet: some View {
@@ -86,7 +86,7 @@ private extension ShowGeodesicSectorAndEllipseView {
8686
/// A view model that encapsulates logic and state for rendering a geodesic sector and ellipse.
8787
/// Handles user-configured parameters and updates overlays when those parameters change.
8888
@Observable
89-
class Model {
89+
final class Model {
9090
/// The map that will be displayed in the map view.
9191
let map = Map(basemapStyle: .arcGISTopographic)
9292

@@ -120,7 +120,7 @@ private extension ShowGeodesicSectorAndEllipseView {
120120
}
121121
}
122122
/// Controls the complexity of the geometries and the approximation of the ellipse curve.
123-
var maxSegmentLength: Double = 1 {
123+
var maxSegmentLength = 1.0 {
124124
didSet {
125125
updateSector()
126126
}

0 commit comments

Comments
 (0)