Last active
December 5, 2018 18:38
-
-
Save alexbaramilis/e870591c260cd08eef0cfa97dcf0abcd to your computer and use it in GitHub Desktop.
Update Content View Height
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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