Skip to content

Instantly share code, notes, and snippets.

@chriswebb09
Created May 11, 2017 08:50
Show Gist options
  • Save chriswebb09/a5fdbb5f7e240b230594b3b9aa6defa4 to your computer and use it in GitHub Desktop.
Save chriswebb09/a5fdbb5f7e240b230594b3b9aa6defa4 to your computer and use it in GitHub Desktop.
let viewOne = UIView()
let viewTwo = UIView()
let viewThree = UIView()
viewOne.tag = 1
viewTwo.tag = 2
viewThree.tag = 3
viewOne.addSubview(viewTwo)
viewOne.addSubview(viewThree)
print(viewTwo.superview)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment