Tag: Unowned
-
Weak, Strong and Unowned in Swift
Weak and unowned keywords are used to define weak and unowned references to objects. A weak reference is a reference to an object that doesn’t prevent the object from being deallocated by the automatic reference counting (ARC) system. An unowned reference is a reference to an object that is assumed to always exist and therefore…