Last active
July 2, 2020 02:12
-
-
Save cardoso/f43793f739991392d28a67ce399705ab 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() { | |
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