TMBarItem

open class TMBarItem : TMBarItemable

Default TMBarItemable that can be displayed in a TMBar.

  • Create an Item with a title.

    Declaration

    Swift

    public convenience init(title: String, badgeValue: String? = nil)
    Parameters
    title

    Title of the item.

    badgeValue

    Badge value to display.

  • Create an Item with an image.

    Declaration

    Swift

    public convenience init(image: UIImage, badgeValue: String? = nil)
    Parameters
    image

    Image of the item.

    badgeValue

    Badge value to display.

  • Create an Item with a title and an image.

    Declaration

    Swift

    public convenience init(title: String, image: UIImage, badgeValue: String? = nil)
    Parameters
    title

    Title of the item.

    image

    Image of the item.

    badgeValue

    Badge value to display.