Skip to content

Instantly share code, notes, and snippets.

@edopelawi
Created September 13, 2016 14:59
Embed
What would you like to do?
A sample on unwrapping String optional using if let statement.
name = "Donald Duck"
if let validName = name {
print(createGreetings(sailorName: validName))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment