title: Swift UILabel with horizontal lines on both sides
body: <p>I am trying to create a UILabel that has 2 horizontal lines on the left and right side like this:</p>
  
  <p><a href="https://i.stack.imgur.com/tzME1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tzME1.png" alt="enter image description here"></a></p>
  
  <p>Does anyone know the best approach for doing this in Swift? The content text in the center will change so I want to make sure it can adapt. I'd really like to create some kind of reusable UIView class but I'm not sure where to start?</p>
  
  <p>Thank you!</p>