title: iOS - Adding highlighter effect to a part of the text
body: <p>I would like to accomplish something like this for UILabel: 
  <a href="https://i.stack.imgur.com/fZqHB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fZqHB.png" alt="enter image description here"></a></p>
  
  <p>The stroke basically represents a casual highlight of that part of the text using a highlighter. </p>
  
  <p>I thought of using <code>resizableImageWithCapInsets</code> and then use it as the background of the text, but it doesn't work with the highlighting artifacts on the top and the bottom edge of the highlight.</p>
  
  <p>My question comes down to: </p>
  
  <ol>
  <li>Can I set a background image(?) for a part of the text in a UILabel?</li>
  <li>What kind of image format should I get to be able to dynamically resize it based on the length of the text that needs to be highlighted? </li>
  </ol>
  
  <p>I have almost gotten it right on Android by playing with SVG points, but I couldn't find a way to do it on iOS. </p>