Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if titleTextField.text.isEmpty == false {
- if let result = DataManager.shared.quizController.joinQuiz(id: titleTextField.text) {
- switch result {
- case .badCode :
- self.showErrorAlert(message: "Bad code")
- case .joined:
- self.showErrorAlert(message: "You are alredy joined")
- case .notJoined:
- navigationController?.popToRootViewController(animated: true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement