I'm trying to use the new SFSymbols for icons in my tab bar.
The images should be centered in their respective tab bar item, but they appear to be aligned to the top:
Here's an image from the View Hierarchy Debugger:
This is the code that is used to create the images:
class TabBarController: UITabBarController {
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
children[0].tabBarItem.image = UIImage(systemName: "magnifyingglass")
children[1].tabBarItem.image = UIImage(systemName: "ellipsis")
}
}