Can't seem to get the NavigationLink to Work

if showDetails {

                Text("You have a net worth of ")
                    .offset(x: 0, y: -430)
                    .foregroundColor(.red)
                    .font(.title)
           
                NavigationLink(destination: showWhy().navigationBarTitle("")
                    .navigationBarHidden(true) .layoutPriority(3)) { Text("Find Out Why")
                   
                    .padding(.all, 8)
                                 .background(Color.blue)
                        .foregroundColor(.white)
                                     .cornerRadius(5)
                                         .font(.headline)
                                      
                                       .offset(x: 0, y: -400)
                                     
                }
              
                
            }
            else {
                Text("Enter Some Numbers!")
                .offset(x: 0, y: 50)
            }
Terms of Service

Privacy Policy

Cookie Policy