TMBarIndicator

open class TMBarIndicator : UIView, TMTransitionStyleable

View that provides indication of the current page position.

  • Display mode of the indicator in a bar.

    • top: Indicator goes above the bar contents.
    • bottom: Indicator goes below the bar contents.
    • fill: Indicator fills the height of the bar, behind the bar contents.
    Declaration

    Swift

    public enum DisplayMode
  • Display mode for the indicator.

    Declaration

    Swift

    open var displayMode: DisplayMode { get }
  • Behavior the indicator should exhibit when scrolling over the bounds of the bar.

    Options:

    • .bounce: Bounce the indicator beyond the bounds of the bar.
    • .compress: Compress the indicators width as overscroll occurs.
    • .none: Don’t do anything.

    Defaults to .bounce.

    Declaration

    Swift

    open var overscrollBehavior: OverscrollBehavior
  • Whether the indicator should display progressively, traversing page indexes as visible progress.

    Declaration

    Swift

    open var isProgressive: Bool
  • Style of transition to use when updating the indicator.

    Declaration

    Swift

    public var transitionStyle: TMTransitionStyle
  • Indicator that is zero height and hidden.

    Use this if you do not want a visible indicator in the bar.

    Declaration

    Swift

    public final class None : TMBarIndicator