Skip to content

Instantly share code, notes, and snippets.

@culjo
Created June 27, 2019 03:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save culjo/17a2a1dcee57bb810d6a734767ba52e1 to your computer and use it in GitHub Desktop.
Save culjo/17a2a1dcee57bb810d6a734767ba52e1 to your computer and use it in GitHub Desktop.
Button(action: submit) {
HStack(alignment: .center) {
Spacer()
Text("Login").color(Color.white).bold()
Spacer()
}
}.padding().background(Color.green).cornerRadius(4.0)
//.. remaining body of view
//.. out body view
func submit() {
loginViewModel.performLogin() // to be implement
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment