From bff20161aef8300e9c5a2d03dd530c21c6c252b3 Mon Sep 17 00:00:00 2001 From: mlch911 Date: Fri, 12 Aug 2022 12:05:22 +0800 Subject: [PATCH] Add Configuration to TransformGestureRecognizers --- Pod/Classes/iOS/TransformGestureRecognizers.swift | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Pod/Classes/iOS/TransformGestureRecognizers.swift b/Pod/Classes/iOS/TransformGestureRecognizers.swift index 4fab5c1..647eb17 100644 --- a/Pod/Classes/iOS/TransformGestureRecognizers.swift +++ b/Pod/Classes/iOS/TransformGestureRecognizers.swift @@ -40,8 +40,14 @@ public typealias TransformControlEvent = ControlEvent extension Reactive where Base: RxGestureView { - public func transformGestures() -> TransformControlEvent { - let source = Observable.combineLatest(panGesture(), rotationGesture(), pinchGesture()) { + public func transformGestures( + panConfiguration: PanConfiguration? = nil, + rotationConfiguration: RotationConfiguration? = nil, + pinchConfiguration: PinchConfiguration? = nil + ) -> TransformControlEvent { + let source = Observable.combineLatest(panGesture(configuration: panConfiguration), + rotationGesture(configuration: rotationConfiguration), + pinchGesture(configuration: pinchConfiguration)) { TransformGestureRecognizers( panGesture: $0, rotationGesture: $1,