iOS - How to predefine TextView line height
问题 I've some UITextView declared as the following lazy var inputTextView: UITextView = { let tv = UITextView() tv.tintColor = UIColor.darkGray tv.font = UIFont.systemFont(ofSize: 17) tv.backgroundColor = UIColor.white return tv }() I've been searching how can I predefine the line height for this UITextView so whenever I write a long text, when it reaches the end of the line and goes to the following line, the spacing would be bigger than the default. I've tried using the following inside the