I\'ve spent almost a couple of hours to figure it out. However, it did not happen and finally, I had to come here. Two things are required to be achieved: <
Try this for iOS 11.0+
import UIKit class MainTabBarController: UITabBarController{ override func viewDidLoad() { super.viewDidLoad() tabBar.layer.cornerRadius = 20 tabBar.layer.maskedCorners = [.layerMinXMinYCorner,.layerMaxXMinYCorner] } }