Augustyniak / RATreeView

Library providing easy-to-use interface for displaying tree structures on iOS and tvOS.
MIT License
2.49k stars 466 forks source link

How to detect RATreeView is dragging? #231

Closed g001613001 closed 7 years ago

g001613001 commented 7 years ago

I can use UIScrollViewDelegate for detect tableView is dragging. like this: extension CustomerChannelVC: UIScrollViewDelegate{ func scrollViewDidScroll(_ scrollView: UIScrollView) { if 0 >= scrollView.panGestureRecognizer.translation(in: scrollView.superview).y { NotificationCenter.default.post(name: NotificationName.scrollDirectionUp, object: nil ) }else{ NotificationCenter.default.post(name: NotificationName.scrollDirectionDown, object: nil ) } }

}

But, RATreeView can't do this.

so, how to detect RATreeView dragging?

Thanks.

g001613001 commented 7 years ago

Fixed. treeView.scrollView.delegate = self