-
-
Save cardoso/df4f4c4adf866da9bec479074e6b8b27 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() { | |
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