Skip to content

Commit 56ec946

Browse files
committed
fix(ios): ensure setEnabled is available through JS for GestureHandler
1 parent b595b60 commit 56ec946

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

plugin/platforms/ios/src/GestureHandler.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ if (value != nil) recognizer.prop = [value type]; \
8181
@property(nonatomic) BOOL shouldCancelWhenOutside;
8282
@property (nullable, nonatomic, weak) id<GestureHandlerDelegate> delegate;
8383

84+
- (void)setEnabled:(BOOL)enabled;
85+
- (void)setShouldCancelWhenOutside:(BOOL)value;
86+
8487
- (void)bindToView:(nonnull UIView *)view;
8588
- (void)unbindFromView;
8689
- (void)configure:(nullable NSDictionary *)config NS_REQUIRES_SUPER;

plugin/platforms/ios/src/GestureHandler.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ - (void)setEnabled:(BOOL)enabled
125125
_enabled = enabled;
126126
self.recognizer.enabled = enabled;
127127
}
128+
- (BOOL)enabled
129+
{
130+
return _enabled;
131+
}
128132

129133
- (void)bindToView:(UIView *)view
130134
{

0 commit comments

Comments
 (0)