PathDynamicModal icon indicating copy to clipboard operation
PathDynamicModal copied to clipboard

Access Pan Gesture

Open alessign opened this issue 9 years ago • 0 comments

Hi, I would like to change properties of the ImageModalView with panning gesture, but if I implement new gesture recogniser in ImageModalView.swift, the pan gesture in PathDynamicModal stops to respond. How can I please use the panning data from PathDynamicModal in the ImageModalView?

I have added sideways detection to your method and passing CGFloat to ImageModalView as such:

`let panXAmountOnBackground = pan.x / CGRectGetWidth(self.backgroundView.bounds)

let view = ImageModalView.instantiateFromNib() view.adjustLabel(CGFloat(panXAmountOnBackground))`

The data are being passed as per console, but the view does not react to the changes. Is there another way I can use the data from pan gesture recogniser in the ImageModalView please?

alessign avatar May 07 '16 18:05 alessign