File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Shared/Samples/Show geodesic sector and ellipse Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments