From 82a9d833e170c8095b7baf96bbc301321a341262 Mon Sep 17 00:00:00 2001 From: Sergey Balalaev Date: Wed, 4 Dec 2024 14:02:09 +0400 Subject: [PATCH] changed description of using .navigation's modifiers --- CHANGELOG.md | 7 +++++++ README.md | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 955c56e..ef266d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. +## [1.10.4] - 2024-12-04 + +#### Added + +- New simple example with list and details. +- Description of using .navigation's modifiers. + ## [1.10.3] - 2024-11-01 #### Added diff --git a/README.md b/README.md index c1cf7dd..9fa6994 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,10 @@ Just open `Example/NavigationExample/NavigationExample.xcodeproj` from Xcode and ## Using Use `NavigationViewStorage` instead of `NavigationView` or `NavigationStack`. - In parent view use modifiers `.navigation(..)` with string `id` param or without (for using struct name) in addition features: + In parent view use modifiers `.navigation(..)` with string `id` param or without (for using struct name) in addition features as in the code below. + + - Note that `.navigation(..)` applies to all content in the view being navigated from. This modifier should not be allowed to apply to child elements of that view, such as childs of ListView, LazyView and each others. Better use `.navigation(..)` below of all content of that view as in the code below. + ```swift