Skip to content

Instantly share code, notes, and snippets.

@cardoso
Created July 13, 2020 02:16
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/2ac3cf99c34cb13bca84ee61f1214d36 to your computer and use it in GitHub Desktop.
Save cardoso/2ac3cf99c34cb13bca84ee61f1214d36 to your computer and use it in GitHub Desktop.
import Foundation
extension JoinViewController {
func setupViews() {
setupAttendeeButton()
setupSpeakerButton()
}
func setupAttendeeButton() {
attendeeButton.translatesAutoresizingMaskIntoConstraints = false
attendeeButton.setTitleColor(.systemBlue, for: .normal)
attendeeButton.setTitle("Attendee 🙋‍♂️", for: .normal)
attendeeButton.titleLabel?.font = .systemFont(ofSize: 32)
view.addSubview(attendeeButton)
}
func setupSpeakerButton() {
speakerButton.translatesAutoresizingMaskIntoConstraints = false
speakerButton.setTitleColor(.systemBlue, for: .normal)
speakerButton.setTitle("Speaker 👩‍💻", for: .normal)
speakerButton.titleLabel?.font = .systemFont(ofSize: 32)
view.addSubview(speakerButton)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment