ra1028 / PathDynamicModal

A modal view using UIDynamicAnimator, like the Path for iOS.
MIT License
286 stars 33 forks source link

Access Pan Gesture #6

Open alessign opened 8 years ago

alessign commented 8 years ago

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?