Question: How can you avoid a strong reference cycle in a closure?
- Use a capture list to set class instances of weak or unowned.
- You can't, there will always be a danger of strong reference cycles inside a closure.
- Initialize the closure as read-only.
- Declare the closure variable as lazy.
Answer: The correct answer of the above question is Option A:Use a capture list to set class instances of weak or unowned.