TMLabelBarButton

open class TMLabelBarButton : TMBarButton

TMBarButton that consists of a single label - that’s it!

Probably the most commonly seen example of a bar button.

  • Vertical alignment of the label within the bar button.

    • .center: Center the label vertically in the button.
    • .top: Align the label with the top of the button.
    • .bottom: Align the label with the bottom of the button.
    Declaration

    Swift

    public enum VerticalAlignment
  • Declaration

    Swift

    open override var contentInset: UIEdgeInsets { get set }
  • Text to display in the button.

    Declaration

    Swift

    open var text: String? { get set }
  • Color of the text when unselected / normal.

    Declaration

    Swift

    open override var tintColor: UIColor! { get set }
  • Color of the text when selected.

    Declaration

    Swift

    open var selectedTintColor: UIColor! { get set }
  • Font of the text when unselected / normal.

    Declaration

    Swift

    open var font: UIFont { get set }
  • Font of the text when selected.

    Declaration

    Swift

    open var selectedFont: UIFont? { get set }
  • How to vertically align the label within the button. Defaults to .center.

    Note

    This will only apply when the button is larger than the required intrinsic height. If the bar sizes itself intrinsically, setting this paramter will have no effect.
    Declaration

    Swift

    open var verticalAlignment: VerticalAlignment { get set }