Skip to content

Instantly share code, notes, and snippets.

@haikieu
Created August 15, 2018 07:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haikieu/7a938ba3f03070158a6f964f24cefb15 to your computer and use it in GitHub Desktop.
Save haikieu/7a938ba3f03070158a6f964f24cefb15 to your computer and use it in GitHub Desktop.
unwrap optional type by if
var optionalString : String?
if let theString = optionalString {
//do something
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment