title: How to remove Tab Bar top border (shadow) in > iOS 10 and Swift 4 with a background image?
body: <p>I've been trying to remove the top border (shadow) line from Tab Bar in Swift 4 for > iOS 10. I'm also using a custom background image. I've just given up after searching for solutions, since none of them work. </p>
  
  <p>The solution which came closest was <a href="https://stackoverflow.com/questions/39850794/remove-top-line-from-tabbar/39858796">this post</a>.</p>
  
  <p>The solution given everywhere works if there is no background or for &lt; iOS 10. For iOS > 10 and using a custom background image none of solutions work. </p>
  
  <p>I even tried using a transparent shadow image, but it required setting cliptobounds to true which doesn't show custom background image. </p>
  
  <p>So at the end of all these solution I'm stuck. Couldn't find any working solution.</p>
  
  <p>I'm setting these custom values in AppDelegate so that it works for all Tab Bars. </p>