I'm trying to add UIBarButtonItems to navigation bar like below. It works fine. But last button item appears very small and it doesn't set sizes automatically.
Here is how I add buttons and it worked fine before iOS 13.
var barbuttonItems:[UIBarButtonItem] = []
for i in 0..<7 {
let barbuttonItem = UIBarButtonItem(image: UIImage(named: "boom"), style: .done, target: self, action: #selector(barbuttonAction(_:)))
barbuttonItem.tag = i
barbuttonItems.append(barbuttonItem)
}
self.navigationItem.setLeftBarButtonItems(barbuttonItems, animated: true)
it looks like below.
Why is the last button too small. the image sizes that I'm using are (25, 50, 75) for 1x, 2x and 3x. I'm looking for a solution only using UIBarButtonItems.
Note: This occurs with iOS 13 update. Before that it worked fine.