Skip to content

Instantly share code, notes, and snippets.

@cardoso
Last active June 2, 2020 23:11
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/9142eded9d7cd61c2d021b824c66bcc3 to your computer and use it in GitHub Desktop.
Save cardoso/9142eded9d7cd61c2d021b824c66bcc3 to your computer and use it in GitHub Desktop.
extension JoinViewController {
func setupViews() {
setupPatientButton()
setupDoctorButton()
}
func setupPatientButton() {
patientButton.translatesAutoresizingMaskIntoConstraints = false
patientButton.setTitleColor(.systemBlue, for: .normal)
patientButton.setTitle("Patient 🤧", for: .normal)
patientButton.titleLabel?.font = .systemFont(ofSize: 32)
view.addSubview(patientButton)
}
func setupDoctorButton() {
doctorButton.translatesAutoresizingMaskIntoConstraints = false
doctorButton.setTitleColor(.systemBlue, for: .normal)
doctorButton.setTitle("Doctor 👩‍⚕️", for: .normal)
doctorButton.titleLabel?.font = .systemFont(ofSize: 32)
view.addSubview(doctorButton)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment