Created
August 15, 2018 07:07
-
-
Save haikieu/7a938ba3f03070158a6f964f24cefb15 to your computer and use it in GitHub Desktop.
unwrap optional type by if
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
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