Skip to content

Instantly share code, notes, and snippets.

@stevencurtis
Created June 12, 2020 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevencurtis/f5c8830c06cb07e412f42d9b941ffdad to your computer and use it in GitHub Desktop.
Save stevencurtis/f5c8830c06cb07e412f42d9b941ffdad to your computer and use it in GitHub Desktop.
viewcontrollerretain
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let parent = Parent(name: "Kim", child: nil)
let child = Child(name: "Jafari", parent: parent)
parent.child = child
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment