Skip to content

Instantly share code, notes, and snippets.

@elqsar
Created March 18, 2015 10:32
Show Gist options
  • Save elqsar/05080e96c15a0e4cee69 to your computer and use it in GitHub Desktop.
Save elqsar/05080e96c15a0e4cee69 to your computer and use it in GitHub Desktop.
Removes all views from parent.
(mainView.subviews as [UIView]).map { $0.removeFromSuperview() }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment