Skip to content

Instantly share code, notes, and snippets.

@cardoso
Last active July 13, 2020 02:30
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/b0587ff914aed7cd9f30543fed420ea4 to your computer and use it in GitHub Desktop.
Save cardoso/b0587ff914aed7cd9f30543fed420ea4 to your computer and use it in GitHub Desktop.
import StreamChat
extension JoinViewController {
func setupHandlers() {
attendeeButton.addTarget(self, action: #selector(handleAttendeeButtonPress), for: .touchUpInside)
speakerButton.addTarget(self, action: #selector(handleSpeakerButtonPress), for: .touchUpInside)
}
@objc func handleAttendeeButtonPress() {
let roomVC = RoomViewController()
roomVC.setupAttendee()
navigationController?.pushViewController(roomVC, animated: true)
}
@objc func handleSpeakerButtonPress() {
let roomVC = RoomViewController()
roomVC.setupSpeaker()
navigationController?.pushViewController(roomVC, animated: true)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment