I have a subclassed UITableViewCell that contains a UITextView. I've added NSParagraphStyle as an attribute to the string in a subclassed NSTextStorage. In the following code, I've increased the space between each row in the UITextView.
swift
let paragraphStyle = NSMutableParagraphStyle()
paragraphStyle.lineSpacing = 11
myCustomTextStorage.appendAttributedString(NSAttributedString(string: someText, attributes: [NSParagraphStyleAttributeName: paragraphStyle]))
The cursor height elongates till the height of the next line as shown below. This only happens on the rows before the last row.
I've looked at several posts on SO regarding this issue, including this post; however, none of the proposed solutions seem to be working for me.
I've read through the TextKit documentation but haven't found any solution for this issue.
Is there a way to reduce the cursor height?