Created
January 27, 2019 09:42
-
-
Save bartjacobs/3fd3c18bd5a49d9e41c1080d93d38204 to your computer and use it in GitHub Desktop.
Using Fatal Errors to Add Clarity and Elegance to Swift - 2
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
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { | |
guard let cell = tableView.dequeueReusableCell(withIdentifier: SettingsTableViewCell.reuseIdentifier, for: indexPath) as? SettingsTableViewCell else { fatalError("Unexpected Index Path") } | |
// Configure Cell | |
... | |
return cell | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment