Inherits from UIPanGestureRecognizer
Declared in KVCarouselGestureRecognizer.h
KVCarouselGestureRecognizer.m

Overview

This gesture recognizer lets you add interactive carousel-like behavior to any view. The gesture recognizer delegate is extended with the methods from the KVCarouselGestureRecognizerDelegate protocol.

Tasks

Carousel delegate

Configuring carousel behavior

  •   allowedDirections

    Bitmask of allowed directions of swiping in carousel. Defaults to KVCarouselDirectionHorizontal.

    property
  •   bounces

    Toggles bouncing at the edges. Defaults to YES.

    property
  •   gapSize

    Sets the size of the gap between views. Defaults to CGSizeZero.

    property

Properties

allowedDirections

Bitmask of allowed directions of swiping in carousel. Defaults to KVCarouselDirectionHorizontal.

@property (nonatomic, assign) KVCarouselDirection allowedDirections

Discussion

Bitmask of allowed directions of swiping in carousel. Defaults to KVCarouselDirectionHorizontal.

Declared In

KVCarouselGestureRecognizer.h

bounces

Toggles bouncing at the edges. Defaults to YES.

@property (nonatomic, assign) BOOL bounces

Discussion

Toggles bouncing at the edges. Defaults to YES.

Declared In

KVCarouselGestureRecognizer.h

delegate

Delegate.

@property (nonatomic, weak) id<KVCarouselGestureRecognizerDelegate,UIGestureRecognizerDelegate> delegate

Discussion

Delegate.

Declared In

KVCarouselGestureRecognizer.h

gapSize

Sets the size of the gap between views. Defaults to CGSizeZero.

@property (nonatomic, assign) CGSize gapSize

Discussion

Sets the size of the gap between views. Defaults to CGSizeZero.

Declared In

KVCarouselGestureRecognizer.h