I have a UIToolbar that has a white tint, with a bar button item, followed by some flexible space, followed by another bar button item. I would like to make the toolbar complete
There is a solution in @ievgen answer in Swift 5.1
toolbar.setBackgroundImage(UIImage(), forToolbarPosition: .any, barMetrics: .default) toolbar.backgroundColor = .clear
If you want to clear the separator gray line
toolbar.setShadowImage(UIImage(), forToolbarPosition: .any)