title: Draw line in UILabel before and after text
body: <p>I want to draw a line before and after a string in <code>UILabel</code> exactly like the following image:</p>
  
  <p>PS: the text is not static, so i can't tell what is the exact text width, otherwise i would put two static lines before and after the text.</p>
  
  <p>PS: Also i can't put the label above a line and give the label background color same to the view background because i have gradient color in the lower view.</p>
  
  <p><img src="https://i.stack.imgur.com/AYE83.png" alt="UILabel with line around text"></p>