Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save xmhafiz/773636c294506b2d5f8cabcc19ac0969 to your computer and use it in GitHub Desktop.
Save xmhafiz/773636c294506b2d5f8cabcc19ac0969 to your computer and use it in GitHub Desktop.
func setupViews() {
view.addSubview(stackView)
stackView.addArrangedSubview(emailTextField)
stackView.addArrangedSubview(passwordTextField)
stackView.addArrangedSubview(submitButton)
stackView.addArrangedSubview(errorLabel) // append the error label here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment