lib/ios/sugarcube-constants/symbol.rb in sugarcube-3.3.7 vs lib/ios/sugarcube-constants/symbol.rb in sugarcube-3.4.0

- old
+ new

@@ -246,10 +246,16 @@ alias cglinejoinstyle cglinejoin def uigesturerecognizerstate SugarCube.look_in(self, Symbol.uigesturerecognizerstate) end + + def uirectedge + SugarCube.look_in(self, Symbol.uirectedge) + end + + alias uigesturestate uigesturerecognizerstate class << self attr :uidevice attr :uideviceorientation @@ -322,10 +328,12 @@ attr :cglinecap attr :cglinejoin attr :uigesturerecognizerstate + attr :uirectedge + end @uidevice = { iphone: UIUserInterfaceIdiomPhone, ipad: UIUserInterfaceIdiomPad, @@ -889,7 +897,18 @@ ended: UIGestureRecognizerStateEnded, cancelled: UIGestureRecognizerStateCancelled, failed: UIGestureRecognizerStateFailed, recognized: UIGestureRecognizerStateRecognized, } + + + @uirectedge = { + left: UIRectEdgeLeft, + right: UIRectEdgeRight, + top: UIRectEdgeTop, + bottom: UIRectEdgeBottom, + none: UIRectEdgeNone, + all: UIRectEdgeAll + } + end