TMBarView

open class TMBarView<Layout, Button, Indicator> : UIView, TMTransitionStyleable, TMBarLayoutParent where Layout : TMBarLayout, Button : TMBarButton, Indicator : TMBarIndicator
extension TMBarView: TMBar

TMBarView is the default Tabman implementation of TMBar. A UIView that contains a TMBarLayout which displays a collection of TMBarButton, and also a TMBarIndicator. The types of these three components are defined by constraints in the TMBarView type definition.

  • View to display on the left (or leading) edge of the bar.

    This view is within the scroll view and is subject to scroll off-screen with bar contents.

    Declaration

    Swift

    open var leftAccessoryView: UIView? { get set }
  • View to display on the left (or leading) edge of the bar.

    This view is not part of the scrollable bar contents and will be visible at all times.

    Declaration

    Swift

    open var leftPinnedAccessoryView: UIView? { get set }
  • View to display on the right (or trailing) edge of the bar.

    This view is within the scroll view and is subject to scroll off-screen with bar contents.

    Declaration

    Swift

    open var rightAccessoryView: UIView? { get set }
  • View to display on the right (or trailing) edge of the bar.

    This view is not part of the scrollable bar contents and will be visible at all times.

    Declaration

    Swift

    open var rightPinnedAccessoryView: UIView? { get set }
  • The type of scrolling interaction to allow.

    Options:

    • .interactive: The bar contents can be scrolled interactively.
    • .swipe: The bar contents can be scrolled through with swipe gestures.
    • .none: The bar contents can’t be scrolled at all.
    Declaration

    Swift

    open var scrollMode: ScrollMode { get set }
  • Whether to fade the leading and trailing edges of the bar content to an alpha of 0.

    Declaration

    Swift

    open var fadesContentEdges: Bool { get set }
  • Spacing between components in the bar, such as between the layout and accessory views.

    Defaults to 8.0.

    Declaration

    Swift

    open var spacing: CGFloat { get set }