Button("login") {
if username=="123" && password=="123"{
Home()
}
}
.padding()
Button("login") {
if username=="123" && password=="123"{
Home()
}
}
.padding()
Please provide more information.
What is the warning you get ?
What is the context ?
The Button action per se should not produce any error.