Skip to content

Instantly share code, notes, and snippets.

@xxtesaxx
Last active June 13, 2017 20:52
Show Gist options
  • Save xxtesaxx/b71e6d44e842a8fbcd2a014b74b93830 to your computer and use it in GitHub Desktop.
Save xxtesaxx/b71e6d44e842a8fbcd2a014b74b93830 to your computer and use it in GitHub Desktop.
if let text = myModel.someString, !text.isEmpty {
cell.myLabel.text = text
} else {
cell.myLabel.text = "Text is empty"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment