UISwipeGestureRecognizerDirection return value out of range

Hi, I've been working on the UISwipeGesuture and get a return value not within the 1, 2, 4, 8 range as shown below. It actually return 3. Does it mean a bit control like 1 & 2 = 3? Thanks for any help.

UISwipeGestureRecognizerDirection(rawValue: 3)

(lldb) p UISwipeGestureRecognizer.Direction.right.rawValue

(UInt) $R2 = 1

(lldb) p UISwipeGestureRecognizer.Direction.up.rawValue

(UInt) $R4 = 4

(lldb) p UISwipeGestureRecognizer.Direction.down.rawValue

(UInt) $R6 = 8

(lldb) p UISwipeGestureRecognizer.Direction.left.rawValue

(UInt) $R8 = 2

UISwipeGestureRecognizerDirection return value out of range
 
 
Q