ParallaxViewActions

open class ParallaxViewActions<T> where T : UIView, T : ParallaxableView

Actions for a parallax view

  • Closure will be called in animation block by ParallaxableView when view should change its appearance to the focused state

    Declaration

    Swift

    open var setupUnfocusedState: ((T) -> Void)?
  • Closure will be called in animation block by ParallaxableView when view should change its appearance to the unfocused state

    Declaration

    Swift

    open var setupFocusedState: ((T) -> Void)?
  • Closure will be called by ParallaxableView before the animation to the focused state start

    Declaration

    Swift

    open var beforeBecomeFocusedAnimation: ((T) -> Void)?
  • Closure will be called by ParallaxableView before the animation to the unfocused state start

    Declaration

    Swift

    open var beforeResignFocusAnimation: ((T) -> Void)?
  • Closure will be called when didFocusChange happened. In most cases default implementation should work

    Declaration

    Swift

    open var becomeFocused: ((T, _ context: UIFocusUpdateContext, _ animationCoordinator: UIFocusAnimationCoordinator) -> Void)?
  • Closure will be called when didFocusChange happened. In most cases default implementation should work

    Declaration

    Swift

    open var resignFocus: ((T, _ context: UIFocusUpdateContext, _ animationCoordinator: UIFocusAnimationCoordinator) -> Void)?
  • Default implementation of the press begin animation for the ParallaxableView

    Declaration

    Swift

    open var animatePressIn: ((T, _ presses: Set<UIPress>, _ event: UIPressesEvent?) -> Void)?
  • Default implementation of the press ended animation for the ParallaxableView

    Declaration

    Swift

    open var animatePressOut: ((T, _ presses: Set<UIPress>, _ event: UIPressesEvent?) -> Void)?
  • Creates actions for parallax view with default behaviours

    Declaration

    Swift

    public init()