Skip to content

Glossary: Swift Basics

if let

Also written: unwrap, unwrapping

Unwraps an optional: if it holds a value, the block runs with a plain name for it, otherwise the `else` block runs.

Where the book teaches it

Related terms

optionalguardnil-coalescing