I am trying to get my tab bar shadow to look like the one seen in this image:
What is the best way of doing thi
For Swift 5 :
tabBar.layer.shadowOffset = CGSize(width: 0, height: 0) tabBar.layer.shadowRadius = 2 tabBar.layer.shadowColor = UIColor.black.cgColor tabBar.layer.shadowOpacity = 0.3