PagingDotStateMachine

enum PagingDotStateMachine

Paging dot state change.

  • noChange: No change.
  • shrink: Shrink.
  • expand: Expand.
  • Undocumented

    Declaration

    Swift

    case noChange
  • Undocumented

    Declaration

    Swift

    case shrink
  • Undocumented

    Declaration

    Swift

    case expand
  • State.

    Declaration

    Swift

    static func state(for index: Int,
                      selectedIndex: Int,
                      direction: PageControlDirection,
                      numberOfPages: Int) -> PagingDotStateMachine

    Parameters

    index

    Index.

    selectedIndex

    Selected index.

    direction

    Direction (left/right/none).

    numberOfPages

    Number of pages.

    Return Value

    Paging dot state change.

  • Undocumented

    Declaration

    Swift

    private static func stateMoveRight(for index: Int, selectedIndex: Int) -> PagingDotStateMachine
  • Undocumented

    Declaration

    Swift

    private static func stateMoveLeft(for index: Int, selectedIndex: Int) -> PagingDotStateMachine