Skip to content

Instantly share code, notes, and snippets.

@cardoso
Last active June 2, 2020 23:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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