Sunday, October 15, 2023
HomeiOS DevelopmentHow you can resolve swift NavigationLink for iOS 16+

How you can resolve swift NavigationLink for iOS 16+


I’ve this code that permits customers to enter a code into the Apple Watch and as soon as the consumer information is collected, it ought to navigate the consumer to a unique web page. The battle is that the NavigationLink doesn’t at all times work.

I get this error message “NavigationLink presenting a worth should seem inside a NavigationContent-based NavigationView. Hyperlink shall be disabled.”

The iOS deployment is ready to 11 and deployment goal is ready to eight.0

VStack{
            TextField("Watch ID", textual content: $idValue)

            Button("Join") {
                isLoading = true
                getID()
            }.background(Colour(UIColor(purple: 0.09, inexperienced: 0.20, blue: 0.38, alpha: 1.00))).cornerRadius(15).padding(.high,10).disabled(isLoading)
            if self.isLoading {
                ProgressView()
                    .zIndex(1)
            }
            else
            {
                ProgressView().hidden()
            }
            NavigationLink(
                vacation spot: ContentView(),
                isActive:$navigateToFirstScreen,
                label: {
                }).hidden().body(peak:0)
            Textual content(errorValue)
        }



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments