title: Swift iOS UITabBar Customization
body: <p>I have a tab bar. I changed its colour, gave it a corner radius, set its border width and colour, and everything is working good. Until now, everything is done in a storyboard.</p>
  
  <p>Now I want to give it left and right margins, as by default it is sticking to the screen's edges.</p>
  
  <p>This is the tab bar's current look:</p>
  
  <p><a href="https://i.stack.imgur.com/sFCWS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sFCWS.png" alt="enter image description here"></a></p>
  
  <p>The black arrows point to the lines that stick to the screen's edges. I want space between this line and the edges.</p>