Table of Contents
Mastering the NavigationStack
and TabView
is essential when building your SwiftUI apps. Use this project to learn how to implement the hierarchical and flat navigations using SwiftUI.
Starter | Final |
---|---|
![]() |
![]() |
-
Clone the repo
git clone https://github.com/developer-academy-unina/Lab-Navigation-In-SwiftUI
-
Open the
.xcodeproj
file in the Starter project
-
Open the Starter project
-
Implement the hierarchical navigation from
LearnerListView
toLearnerDetailView
-
Implement the flat navigation between
LearnerListView
andRedView
in a new file namedContainerView
-
In the
LearnersApp.swift
file (the app entry point), swapLearnerListView
withContainerView
to see the flat navigation at the app launch -
Launch the app on the simulator and check if your version is similar to the Final project
You've found a bug in the source code, a mistake in the documentation or maybe you'd like a new feature? Take a look at GitHub Discussions to see if it's already being discussed. You can help us by submitting an issue on GitHub. Before you create an issue, make sure to search the issue archive -- your issue may have already been addressed!
Please try to create bug reports that are:
- Reproducible. Include steps to reproduce the problem.
- Specific. Include as much detail as possible: which version, what environment, etc.
- Unique. Do not duplicate existing opened issues.
- Scoped to a Single Bug. One bug per report.
Reach out to the maintainer at one of the following places:
- GitHub Discussions
- GitHub issues
- Contact a Mentor for any other help
The original setup of this repository is by Luca Palmese.
For a full list of all authors and contributors, see the contributors page.
This project is licensed under the MIT License.
See LICENSE for more information.