Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@cardoso
Created May 21, 2020 20:57
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 cardoso/5534d5cc93dbc9dde2be618ae2eb98c3 to your computer and use it in GitHub Desktop.
Save cardoso/5534d5cc93dbc9dde2be618ae2eb98c3 to your computer and use it in GitHub Desktop.
extension JoinViewController {
func setupViews() {
setupChannelTextField()
setupJoinButton()
}
func setupChannelTextField() {
channelTextField.translatesAutoresizingMaskIntoConstraints = false
channelTextField.becomeFirstResponder()
view.addSubview(channelTextField)
}
func setupJoinButton() {
joinButton.translatesAutoresizingMaskIntoConstraints = false
joinButton.setTitleColor(.systemBlue, for: .normal)
joinButton.setTitle("Join/Create", for: .normal)
view.addSubview(joinButton)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment