I would like a different background color when the user selects a tab bar item than when it is unselected.
In Swift
UITabBar.appearance().selectionIndicatorImage = UIImage(named: "tabSelected")
with an image tabSelected@2x.png of size 98x98 pixels
tabSelected@2x.png