Skip to content

Instantly share code, notes, and snippets.

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
You can’t perform that action at this time.