Default UITextView has text insets, unlike the UILabel.
How to remove the insets on UITextView like an UILabel?
UITextView
On the storyboard, select the UITextView and remove the Scrolling Enabled.
@IBOutlet weak var textView: UITextView!
override func viewDidLoad() {
super.viewDidLoad()
textView.textContainer.lineFragmentPadding = 0
textView.textContainerInset = .zero
}
UITextView which is removed text insets will look like an UILabel.



