Skip to content

Instantly share code, notes, and snippets.

@cardoso
Last active June 11, 2020 01:33
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/df4f4c4adf866da9bec479074e6b8b27 to your computer and use it in GitHub Desktop.
Save cardoso/df4f4c4adf866da9bec479074e6b8b27 to your computer and use it in GitHub Desktop.
extension JoinViewController {
func setupViews() {
setupUserButton()
setupAgentButton()
}
private func setupUserButton() {
userButton.translatesAutoresizingMaskIntoConstraints = false
userButton.setTitleColor(.systemBlue, for: .normal)
userButton.setTitle("User 👤", for: .normal)
userButton.titleLabel?.font = .systemFont(ofSize: 32)
view.addSubview(userButton)
}
private func setupAgentButton() {
agentButton.translatesAutoresizingMaskIntoConstraints = false
agentButton.setTitleColor(.systemBlue, for: .normal)
agentButton.setTitle("Agent 👩‍💻", for: .normal)
agentButton.titleLabel?.font = .systemFont(ofSize: 32)
view.addSubview(agentButton)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment