Skip to content

Commit

Permalink
手势优化
Browse files Browse the repository at this point in the history
  • Loading branch information
bo committed Aug 25, 2021
1 parent 1b1e6cd commit b93746a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion BOTransition/BOTransitioning.m
Original file line number Diff line number Diff line change
Expand Up @@ -1483,6 +1483,18 @@ - (NSNumber *)boTransitionGesShouldAndWillBegin:(BOTransitionPanGesture *)ges
NSDictionary *moveindic = [configdelegate bo_trans_moveInVCWithGes:ges
transitionType:self.transitionType
subInfo:subInfo];
if (!moveindic
|| 0 == moveindic.count) {
return nil;
}

NSString *actstr = [moveindic objectForKey:@"act"];
if (actstr
&& [actstr isEqualToString:@"fail"]) {
//显式cancel
return @(NO);
}

moveInVC = [moveindic objectForKey:@"vc"];
__weak typeof(self) ws = self;
if (moveInVC
Expand Down Expand Up @@ -1522,7 +1534,7 @@ - (NSNumber *)boTransitionGesShouldAndWillBegin:(BOTransitionPanGesture *)ges
[ges.userInfo setObject:validgesinfo ? : @{} forKey:@"triggerGesInfo"];
return @(YES);
} else {
return @(NO);
return nil;
}
}

Expand Down

0 comments on commit b93746a

Please sign in to comment.