Attributed string with background rounded corner in iOS Swift
enter image description here
I have two textView one is attributed string and other is html string so I want add background inside the span tag for elements and used this as attributed sting. attributed string provide us add background color in string but its does not provide us as a corner radius background. you can see my screenshot background is not inside the span tag its used wrong range and I think not match that’s why my view is not lying in exact position where html span tag elements exist my code