On iOS 10 this code doesn't work in order to remove the tabBar shadow line:
[[UITabBar appearance] setShadowImage:[[UIImage alloc] init]];
Somebody knows, what must I do to remove it?
On iOS 9.3
with this two lines the line is removed, but iOS 10
ignores setShadowImage
command.
removes the topline for @iOS 13.0
let appearance = tabBar.standardAppearance appearance.shadowImage = nil appearance.shadowColor = nil tabBar.standardAppearance = appearance;
removes the topline for iOS 12.0 and earlier
tabBar.shadowImage = UIImage() tabBar.backgroundImage = UIImage()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With