-
-
Save cardoso/bde9cc1ac83598313e4f2b6cd45c2fbf 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
import Foundation | |
extension JoinViewController { | |
func setupViews() { | |
setupStudentButton() | |
setupTeacherButton() | |
} | |
func setupStudentButton() { | |
studentButton.translatesAutoresizingMaskIntoConstraints = false | |
studentButton.setTitleColor(.systemBlue, for: .normal) | |
studentButton.setTitle("Student 👨🎓", for: .normal) | |
studentButton.titleLabel?.font = .systemFont(ofSize: 32) | |
view.addSubview(studentButton) | |
} | |
func setupTeacherButton() { | |
teacherButton.translatesAutoresizingMaskIntoConstraints = false | |
teacherButton.setTitleColor(.systemBlue, for: .normal) | |
teacherButton.setTitle("Teacher 👩🏫", for: .normal) | |
teacherButton.titleLabel?.font = .systemFont(ofSize: 32) | |
view.addSubview(teacherButton) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment