I've been studying swift for some time and now I'm looking to dig deeper into the language and IOS platform.
I wanted to know more concretely what the importance is and how to use the weak and unowned correctly.
I've been studying swift for some time and now I'm looking to dig deeper into the language and IOS platform.
I wanted to know more concretely what the importance is and how to use the weak and unowned correctly.
These references have to do with ARC. In practice you are telling the compiler what type of reference is that variable so that it can avoid circular references.
Typically you have strong, weak and unowned.
There is more theory behind this question, but this is the basic one.