Question posted in Xcode
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
2
Answers
According to your question, you using Autolayout. Perfect!
So if you want to fit your TextView size to its content. You should uncheck on your storyboard (of textView),
Or by code:
p.s. be sure that you created constraints correctly in your storyboard
Set the constraints of the UITextView top, left, right and remove the bottom constraint and it should work.
Tested with Xcode 12.3 , Swift 5