Skip to content

Instantly share code, notes, and snippets.

Boris Vinogradov mrcompoteee

  • Lviv
View GitHub Profile
@mrcompoteee
mrcompoteee / RetainCycle.swift
Created Nov 19, 2018
Example of a simple retain cycle
View RetainCycle.swift
import Foundation
class A {
var child: B?
init() {
self.child = B(parent: self)
}
}
You can’t perform that action at this time.