in if let error = error { self.outputTextView.text = "Failed with error: \(error)" return } if let languageCode = languageCode { self.outputTextView.text = "Identified Language: \(languageCode)" } else { self.outputTextView.text = "No language was identified" } } }