Helps resolve CXTDT-63501

Gesture recognizer on Page Control needs to be public so that subclass, MFTextPageControl, can add it and remove it as needed
This commit is contained in:
Robinson, Blake 2020-03-03 15:37:58 -05:00
parent 545d9af415
commit d04e87edaf
2 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@
@property (nullable, weak, nonatomic) UIView *containerView;
@property (nullable, weak, nonatomic) UIView *indicatorRectangle;
@property (nullable, copy, nonatomic) PagingTouchBlock pagingTouchBlock;
@property (nullable, strong, nonatomic) UITapGestureRecognizer *tapGestureRecognizer;
///set YES to make the accessibility value as "Slide #currentPage of #totalPage", otherwise will be "Page #currentPage of #totalPage", default is NO
@property (nonatomic) BOOL isSlidesAcc;

View File

@ -267,6 +267,7 @@ static CGFloat const IndicatorRectangleHeight = 4;
UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] init];
[tapGesture addTarget:self action:@selector(rectangleTapped:)];
[self addGestureRecognizer:tapGesture];
self.tapGestureRecognizer = tapGesture;
}
}