UITabBar

class UITabBar : UIView
  • SwifterSwift: Set tabBar colors.

    Declaration

    Swift

    public func setColors(
    	background: UIColor? = nil,
    	selectedBackground: UIColor? = nil,
    	item: UIColor? = nil,
    	selectedItem: UIColor? = nil)

    Parameters

    background

    background color.

    selectedBackground

    background color for selected tab.

    item

    icon tint color for items.

    selectedItem

    icon tint color for item.