I am working on a book app that allows the user to flip through pages at the bottom of the screen. These buttons are Navigation Links and work perfectly, up until page 14. At page 14 the app screen goes blank. Is there some sort of limit on how many pages I can go through with Nav Links? If there is how can I get around that?
This is what I have for my navigation setup, it's the same on every page with the page numbers being the only thing that differs:
HStack{
//previous page
NavigationLink(destination: aristotlesPoetics13()) {
Image(systemName: "arrowshape.left")
.font(.system(size: 30))
.foregroundColor(Color("yellowBeige"))
.padding([.top, .trailing])
}
//home
NavigationLink(destination: ContentView()) {
Image(systemName: "house")
.font(.system(size: 30))
.foregroundColor(Color("yellowBeige"))
.padding([.top, .leading, .trailing])
}
//next page
NavigationLink(destination: aristotlesPoetics15()) {
Image(systemName: "arrowshape.right")
.font(.system(size: 30))
.foregroundColor(Color("yellowBeige"))
.padding([.top, .leading])
}
I have tried restarting Xcode and simulating different iPhones but neither worked. I have also quadruple checked the pages to ensure that everything is spelled correctly and it is. When I start the iPhone simulation from page 14 and click onto page 15 I have no issues. When I click into the book from ContentView (my apps homepage) and navigate through the pages until I reach page 15 is when I have issues.