I have been trying to change the background color of the toolbar, and only the toolbar in SwiftUI with no success.
I have tried doing UIToolbar.appearance().barTintColor = UIColor.red
and that was supposed to change the color but that didn't do anything.