Skip to content

Commit

Permalink
Merge pull request #534 from Esri/df/bookmarksFIx
Browse files Browse the repository at this point in the history
`Bookmarks` - Initializer patch
  • Loading branch information
dfeinzimer authored Dec 4, 2023
2 parents eb2a041 + 70897dc commit fb8c855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/ArcGISToolkit/Components/Bookmarks/Bookmarks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public struct Bookmarks: View {
viewpoint: Binding<Viewpoint?>? = nil
) {
_isPresented = isPresented
self.bookmarks = bookmarks
_bookmarks = State(initialValue: bookmarks)
self.viewpoint = viewpoint
}

Expand All @@ -103,7 +103,7 @@ public struct Bookmarks: View {
) {
self.geoModel = geoModel
self.viewpoint = viewpoint
self.bookmarks = []
_bookmarks = State(initialValue: [])
_isPresented = isPresented
}

Expand Down

0 comments on commit fb8c855

Please sign in to comment.