From 36d486b55d5d2eebf7964ed362951192f37a728b Mon Sep 17 00:00:00 2001 From: takehilo Date: Thu, 7 Mar 2024 10:55:03 +0900 Subject: [PATCH] Fix typo in TreeBasedNavigation.md --- .../Documentation.docc/Articles/TreeBasedNavigation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ComposableArchitecture/Documentation.docc/Articles/TreeBasedNavigation.md b/Sources/ComposableArchitecture/Documentation.docc/Articles/TreeBasedNavigation.md index 5c84531659f3..b8e39159ff97 100644 --- a/Sources/ComposableArchitecture/Documentation.docc/Articles/TreeBasedNavigation.md +++ b/Sources/ComposableArchitecture/Documentation.docc/Articles/TreeBasedNavigation.md @@ -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