Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

Commit

Permalink
Define BSKeyboardControl using NS_OPTIONS and BSKeyboardControlsDirec…
Browse files Browse the repository at this point in the history
…tion using NS_ENUM to make them usable in Swift.
  • Loading branch information
kayleya committed Oct 15, 2015
1 parent 949e8e2 commit 4dfd52e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions BSKeyboardControls/BSKeyboardControls.h
Expand Up @@ -11,21 +11,21 @@
/**
* Available controls.
*/
typedef enum
typedef NS_OPTIONS(NSUInteger, BSKeyboardControl)
{
BSKeyboardControlPreviousNext = 1 << 0,
BSKeyboardControlDone = 1 << 1
} BSKeyboardControl;
};

/**
* Directions in which the fields can be selected.
* These are relative to the active field.
*/
typedef enum
typedef NS_ENUM(NSUInteger, BSKeyboardControlsDirection)
{
BSKeyboardControlsDirectionPrevious = 0,
BSKeyboardControlsDirectionNext
} BSKeyboardControlsDirection;
};

@protocol BSKeyboardControlsDelegate;

Expand Down

0 comments on commit 4dfd52e

Please sign in to comment.