I have set my UIToolBar tint color to some value, and there is this border line that I see in which I want to remove:
You can do like this:
self.navigationController.toolbar.clipsToBounds = YES;
toolbar1.clipsToBounds = YES;
Worked for me incase someone is still trying with Navigational bar
navigationController?.toolbar.barTintColor = .white
navigationController?.toolbar.setShadowImage(UIImage(), forToolbarPosition: .any)
[[UIToolbar appearance] setBackgroundImage:[[UIImage alloc] init] forToolbarPosition:UIBarPositionBottom barMetrics:UIBarMetricsDefault];
[[UIToolbar appearance] setShadowImage:[[UIImage alloc] init] forToolbarPosition:UIBarPositionBottom];
[UIToolbar appearance].barTintColor = [UIColor ...];```
Setting the style to UIBarStyleBlackTranslucent did it for me (iOS 6)