UITabBar

public extension UITabBar
  • SwifterSwift: Set tabBar colors.

    Declaration

    Swift

    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.