Replies: 1 comment 5 replies
-
|
Hey @jclardy. There is a little magic involved to automatically navigate on selection on iPhone, and I'm not sure that the
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a small app using SwiftUI-Navigation and it has been great on iPhone - but now I'm trying to adapt the app to iPad and I'm running into issues. I've searched for NavigationSplitView in discussions/issues but I didn't find anything.
My app is setup like this:
The problem is if I navigate to a child view in Settings view, then change the selection to
.transactionsin the sidebar, the "root" view changes correctly, but I still remain in the same navigation stack (IE I am in Settings > About, I tap on Amounts, then I am now seeing Amounts > About - the parent view changes, but not the view on screen.) For iPhone, I have the app in a TabView and things work correctly (Each tab remembers its own navigation) using these same subviews. My desire is to essentially turn my iPhone app tabs, into a sidebar when viewed on iPad and have them function nearly identically.I haven't used split view at all in my iOS career (Even in UIKit) and I know these APIs are also new for SwiftUI, but I'm wondering if I'm doing something obviously wrong, or if there are any splitview examples using the swiftui-navigation library?
Beta Was this translation helpful? Give feedback.
All reactions