I am trying to display text using UITextView. I added "See More" when displaying long texts. I would like to change the background color when tapping it. I set the background of NSAttributedString, but I can not set round corners and margins well.

Thanks!

**What I want to do!**

A gray background with a sufficient margin with a rounded corner when tapping the character added to UITextView.

**Note:** It is already possible to tap a character. This question is about the effect at tapping.

!["See More" example](https://i.stack.imgur.com/7W0bd.png)

!["Cross lines" example](https://i.stack.imgur.com/w3Raw.jpg)

**Similar question**

[NSAttributedString background color and rounded corners](https://stackoverflow.com/questions/16362407/nsattributedstring-background-color-and-rounded-corners)

[How to set NSString's background cornerRadius on iOS7](https://stackoverflow.com/questions/21857408/how-to-set-nsstrings-background-cornerradius-on-ios7)