Created
July 19, 2021 09:54
-
-
Save fredriccliver/45abda38f6c87b009d4b57a4ff372593 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// ... | |
class MyVC: UIViewController{ | |
// ... | |
override func viewDidLoad() { | |
titleTextView.frame.size.height = titleTextView.sizeThatFits(titleTextView.frame.size).height | |
titleTextViewHeight.constant = titleTextView.contentSize.height | |
descriptionTextView.frame.size.height = descriptionTextView.sizeThatFits(descriptionTextView.frame.size).height | |
descriptionTextViewHeight.constant = descriptionTextView.contentSize.height | |
} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment