I want to set a corner radius for partial text on UILabel. I've got the range.
The following code set the background color, but it gonna be a rectangle background.
So, my problem is how to set a corner radius to it?
string.setAttributes([NSBackgroundColorAttributeName: UIColor.red], range: range)
Thank you for any suggestion.