ios – navigationDestination for “Movie” was declared earlier on the stack. Only the destination declared closest to the root view of the stack will be used


Hello I am new to SwiftUI so dont mind my silly mistakes.What i am trying to do is i have a home view inside home view there is a movies scroll view which on clikc on each goes to a moviedetailview this is working fine but in home view there is a see all navigation button which on click goes to the popular movies view then if i click on each movie again i need to come to moviedetail view ,but here i am facing the issue where the popular movie view again appears and on back there is moviedetail view.
enter image description hereenter image description here
enter image description hereenter image description here

Hello I am new to SwiftUI so dont mind my silly mistakes.What i am trying to do is i have a home view inside home view there is a movies scroll view which on clikc on each goes to a moviedetailview this is working fine but in home view there is a see all navigation button which on click goes to the popular movies view then if i click on each movie again i need to come to moviedetail view ,but here i am facing the issue where the popular movie view again appears and on back there is moviedetail view.

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img