-
-
Save cardoso/5534d5cc93dbc9dde2be618ae2eb98c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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