Hello,
I'm trying to build a simple button. For some reason, I'm getting the following errors:
Cannot convert value of type '() -> ()' to expected argument type 'String'
Incorrect argument label in call (have 'action:_:', expected 'value:selected:')
Button(action: login) {
ZStack {
RoundedRectangle(cornerRadius: 5)
.fill(Color.black)
.frame(width: UIScreen.main.bounds.width - 50, height: 50)
Text("Sign in")
.foregroundColor(.white)
}
}
All of my buttons in this particular project suddenly have this error. Any help would be greatly appreciated.
Thank you