title: How to set rounded corners and shadow for UITabBar?
body: <p>I want to set corner radius and shadow for <code>UITabBar</code>, but I have a problem.
  This is my code</p>
  
  <pre><code>tabBar.barTintColor = .white
  tabBar.isTranslucent = false
  
  tabBar.layer.shadowOffset = CGSize(width: 0, height: 5)
  tabBar.layer.shadowColor = UIColor(red: 0, green: 0, blue: 0, alpha: 1).cgColor
  tabBar.layer.shadowOpacity = 1;
  tabBar.layer.shadowRadius = 25;
  
  tabBar.layer.masksToBounds = false
  tabBar.isTranslucent = true
  tabBar.barStyle = .blackOpaque
  tabBar.layer.cornerRadius = 13
  tabBar.layer.maskedCorners = [.layerMinXMinYCorner, .layerMaxXMinYCorner]
  </code></pre>
  
  <p>If i change <code>tabBar.layer.masksToBounds = false</code> to <code>= true</code> -> corner radius will be displayed , but shadow will not be. </p>