Hi, anyone knows about retain cycle? In which condition we use "[weak self]" and "[unowned self]"? Thanks!
https://docs.swift.org/swift-book/LanguageGuide/AutomaticReferenceCounting.html ကို ဖတ္ၾကည့္ဖို႕ အၾကံျပဳပါတယ္။
weak to prevent retain cycles
If self could be nil in the closure use [weak self].
If self will never be nil in the closure use [unowned self].