ScrollState

public enum ScrollState : Equatable

The different possible states of any scrollable view

  • The scrollable view is in a state of rest and not scrolling

    Declaration

    Swift

    case idle
  • The scrollable view is scrolling

    • delta: The change in contentOffset from the last state.
      • negative x -> scrolling right
      • positive x -> scrolling left
      • negative y -> scrolling down
      • positive y -> scrolling up

    Declaration

    Swift

    case scrolling(delta: CGPoint)