https://github.com/zddhub/poems
A poem book using NavigationSplitView + NavigationStack
https://github.com/zddhub/poems
Last synced: 10 months ago
JSON representation
A poem book using NavigationSplitView + NavigationStack
- Host: GitHub
- URL: https://github.com/zddhub/poems
- Owner: zddhub
- Created: 2022-06-20T15:46:49.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-26T03:09:12.000Z (almost 4 years ago)
- Last Synced: 2025-04-06T23:09:59.488Z (about 1 year ago)
- Language: Swift
- Size: 3.48 MB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Poems
A poem app to demonstrate Navigation APIs that were introduced from [WWDC22 10054](https://developer.apple.com/videos/play/wwdc2022/10054).
Read [【WWDC22 10054】SwiftUI 新导航方案](https://xiaozhuanlan.com/topic/7841259603) to know more about this App.

## Navigation Stack
## Deeplink
`zddhub://poems?type=0&poemId=5&pathIds=1,2,3,4`
## Known issues
- [ ] `@SceneStorage` can't store the data
- [ ] Don't know how to subscribe to the change of `navigationModel`, No objectWillChangeSequence function is available in the video
- [ ] The `poemId` and `path` are reset after restoring from `@AppStorage`
- [ ] Update NavigationAuthority bound path tried to update multiple times per frame
- [ ] The i18n of back button doesn't work
- [ ] Conditional views in columns of NavigationSplitView fail to update on some state changes. (91311311)
- [ ] Selection-driven, three-column NavigationSplitView sometimes fails to push when collapsed to a single column. (93673059)
- [ ] NavigationPath store and restore error: NavigationPath.swift:596: Fatal error: throw through?
```
Failed to decode item in navigation path at index 0. Perhaps the navigationDestination declarations have changed since the path was encoded?
SwiftUI/NavigationPath.swift:596: Fatal error: throw through? 2022-06-23 21:26:29.584175+0800 Poems[12912:4425684] SwiftUI/NavigationPath.swift:596: Fatal error: throw through?
```
- [ ] Still need to wait for macOS 13.0 to build macOS App