Directions Class Reference

Inherits from NSObject
Declared in UISwipesView.h

Overview

The Directions are abstractions of 4 directional swipe operations. They allow the swiping away of the currently viewed card (or View), to the top, bottom, left or right of the screen.

The following are the Directions Class' Values:
[Directions LEFT] [Directions DOWN] [Directions RIGHT] [Directions UP]

Objective-C Usage Example:

UISwipesView *swipesView = [[UISwipesView alloc] init];
// Or from Storyboard Outlet (self.swipesView)

NSArray * directions = @[[Directions LEFT], [Directions RIGHT]];
// Or from Storyboard Options (Direction left, ...)

[swipesView setAllowedDirections:directions];

+ LEFT

LEFT Direction (0x03)

+ (Directions *)LEFT

Declared In

UISwipesView.h

+ DOWN

DOWN Direction (0x50)

+ (Directions *)DOWN

Declared In

UISwipesView.h

+ RIGHT

RIGHT Direction (0x30)

+ (Directions *)RIGHT

Declared In

UISwipesView.h

+ UP

UP Direction (0x05)

+ (Directions *)UP

Declared In

UISwipesView.h

– description

Human readable string representing the direction

- (NSString *)description

Declared In

UISwipesView.h