Skip to content

Glossary: Swift Basics

force unwrap

Also written: !

A `!` after an optional that takes the value out, but crashes the program if it is `nil`. Avoid it; use `if let` or `??`.

Where the book teaches it

Related terms

optionalif letnil-coalescing