Created
July 9, 2020 00:08
-
-
Save cardoso/588d303157543acda9432a1a3fcafe73 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() { | |
memberButton.addTarget(self, action: #selector(handleMemberButtonPress), for: .touchUpInside) | |
instructorButton.addTarget(self, action: #selector(handleInstructorButtonPress), for: .touchUpInside) | |
} | |
@objc func handleMemberButtonPress() { | |
let classVC = ClassViewController() | |
classVC.setupMember() | |
navigationController?.pushViewController(classVC, animated: true) | |
} | |
@objc func handleInstructorButtonPress() { | |
let classVC = ClassViewController() | |
classVC.setupInstructor() | |
navigationController?.pushViewController(classVC, animated: true) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment