Skip to content

Commit

Permalink
Fix typo in TreeBasedNavigation.md (#2898)
Browse files Browse the repository at this point in the history
  • Loading branch information
takehilo authored Mar 7, 2024
1 parent 115fe5a commit a0acf42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ struct ChildView: View {
}
```

When `self.dismiss()` is invoked, SwiftUI finds the closet parent view with a presentation, and
When `self.dismiss()` is invoked, SwiftUI finds the closest parent view with a presentation, and
causes it to dismiss by writing `false` or `nil` to the binding that drives the presentation. This
can be incredibly useful, but it is also relegated to the view layer. It is not possible to use
`dismiss` elsewhere, like in an observable object, which would allow you to have nuanced logic
Expand Down

0 comments on commit a0acf42

Please sign in to comment.