NavigationBackport
NavigationBackport copied to clipboard
Introduce NBNavigationSplitView as a backport of NavigationSplitView
Apple introduced NavigationSplitView
in WWDC22, this is a backport implementation of it with limitation:
- only support double colunm layout (sidebar + detail)
- can not nested in NBNavigationStack
Pease see the demo for usage
Thanks @strangeliu for the PR. I haven't yet had a chance to look at it in detail but I will try to soon.
when this will be merge ?
Any updates here? Looking forward to have NBNavigationSplitView
Sorry for the radio silence on this issue. I've been working on a slightly different implementation that would overcome the drawbacks that @strangeliu mentioned (thanks for your work on this @strangeliu!). I'm just working through some remaining issues before sharing it. Thanks for your patience.
I've raised a PR #28, attempting to overcome the limitations @strangeliu described here. The API more closely resembles that of NavigationSplitView, in that you can have two or three pane layouts, and you can nest a NBNavigationStack
inside a NBNavigationSplitView
, though it must be within the detail pane only. Thanks @strangeliu for instigating this. If anyone feels like checking out that branch and trying it out, any feedback would be gratefully received. 🙏