Skip to content

Instantly share code, notes, and snippets.

@alexbaramilis
Last active December 5, 2018 18:38
Show Gist options
  • Save alexbaramilis/e870591c260cd08eef0cfa97dcf0abcd to your computer and use it in GitHub Desktop.
Save alexbaramilis/e870591c260cd08eef0cfa97dcf0abcd to your computer and use it in GitHub Desktop.
Update Content View Height
override func viewWillLayoutSubviews() {
super.viewWillLayoutSubviews()
contentViewHeight.constant = view.bounds.height > 504 ? view.bounds.height : 504
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment