Last active
July 13, 2020 02:30
-
-
Save cardoso/b0587ff914aed7cd9f30543fed420ea4 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 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