Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import StreamChat
extension JoinViewController {
func setupHandlers() {
patientButton.addTarget(self, action: #selector(handlePatientButtonPress), for: .touchUpInside)
doctorButton.addTarget(self, action: #selector(handleDoctorButtonPress), for: .touchUpInside)
}
@objc func handlePatientButtonPress() {
let consultVC = ConsultViewController()
consultVC.setupPatient()
navigationController?.pushViewController(consultVC, animated: true)
}
@objc func handleDoctorButtonPress() {
let consultVC = ConsultViewController()
consultVC.setupDoctor()
navigationController?.pushViewController(consultVC, animated: true)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.