Skip to content

Glossary: Swift Beyond the Basics

weak reference

Also written: weak, weak var

A reference that doesn't keep an object alive and becomes `nil` when the object is freed, so it must be an optional `var`. It breaks retain cycles, such as a tab's link back to its café.

Where the book teaches it

Related terms

retain cycleunownedstrong reference