Skip to content

Glossary: Swift Basics

optional chaining

Also written: ?.

Using `?.` to call a method on an optional; if it is `nil`, the call is skipped and the result is `nil`.

Where the book teaches it

Related terms

optionalnil-coalescing