Skip to content

Commit

Permalink
Update wrong example code
Browse files Browse the repository at this point in the history
`GeometryrReader` is not needed in case of `.readSize()"
  • Loading branch information
klaas authored Jul 22, 2024
1 parent f3e60a7 commit 3bc41e6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,9 @@ The `ClusterManager` stores and cluster map points. It's an actor and safe threa
@State private var mapSize: CGSize = .zero

var body: some View {
GeometryReader(content: { geometryProxy in
Map()
Map()
.readSize(onChange: { newValue in
mapSize = newValue
})
})
}
```
Expand Down

0 comments on commit 3bc41e6

Please sign in to comment.