Skip to content

Instantly share code, notes, and snippets.

@cardoso
Created July 9, 2020 00:07
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/988d266a6180ae120c4c39de592e095b to your computer and use it in GitHub Desktop.
Save cardoso/988d266a6180ae120c4c39de592e095b to your computer and use it in GitHub Desktop.
extension JoinViewController {
func setupViews() {
setupMemberButton()
setupInstructorButton()
}
func setupMemberButton() {
memberButton.translatesAutoresizingMaskIntoConstraints = false
memberButton.setTitleColor(.systemBlue, for: .normal)
memberButton.setTitle("Member 🧘‍♂️", for: .normal)
memberButton.titleLabel?.font = .systemFont(ofSize: 32)
view.addSubview(memberButton)
}
func setupInstructorButton() {
instructorButton.translatesAutoresizingMaskIntoConstraints = false
instructorButton.setTitleColor(.systemBlue, for: .normal)
instructorButton.setTitle("Instructor 🧘‍♀️", for: .normal)
instructorButton.titleLabel?.font = .systemFont(ofSize: 32)
view.addSubview(instructorButton)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment