SwiftUI always warns when a page jump with Button is unused?

Button("login") {

                    if username=="123" && password=="123"{

                        Home()

                }

            }

            .padding()

Please provide more information.

What is the warning you get ?

What is the context ?

  • where is the page jump ?
  • what is unused ?

The Button action per se should not produce any error.

SwiftUI always warns when a page jump with Button is unused?
 
 
Q