Only root-level navigation destinations are effective for a navigation stack with a homogeneous path – Ios swift
I am trying to integrate NavigationStack in my SwiftUI app. I have four views: CealUIApp, OnBoardingView, UserTypeView and RegisterView. I want to navigate from OnBoardingView to UserTypeView when user presses a button in OnBoardingView. And, navigate from UserTypeView to RegisterView…