So using let creates a strong reference, what about if let ?
If let = strong reference ?
Add a Comment
So using let creates a strong reference, what about if let ?
I can just add question, not answer.
if let has a local scope, so how could it be strong reference ?
Does guard let behave differently ?
I do not see how to declare if weak var
You have probably seen this
h ttps://krakendev.io/blog/weak-and-unowned-references-in-swift
I can just add question, not answer.
if let has a local scope, so how could it be strong reference ?
Does guard let behave differently ?
I do not see how to declare if weak var
You have probably seen this
h ttps://krakendev.io/blog/weak-and-unowned-references-in-swift
Strong or weak?
Strong.
Does it cause reference cycle?
No.
Thanks.
I'ts a lazy way of dealing with an optional but I've started using it all the time. Just wanted to make sure.