Navigating to swiftui view from push notification
I have a multiple root navigationView in swiftui view, I am setting the root based on a state variable, the issue is that when I am navigating to a screen from a push notification click and then click back, it returns me to the root view not the one was openned before the click of the push notification.
for example:
I am navigating A -> B -> C
then open D screen from the push notification, click back, it returns me to A not to C
How to hide the divider line below the navigation bar in SwiftUI?
I need to remove the Divider below the NavigationView, this is happening when I am set .listStyle(.plain) because I need to provide manual insets for the List. I have also tried with embedding List with VStack but didn’t helped, when adding Text inside VStack I can get rid of the Divider line, but I need to achieve this without the Text. Kindly help me to achieve this.