Skip to content

Commit

Permalink
Merge pull request MortimerGoro#156 from Austinate/master
Browse files Browse the repository at this point in the history
Fixed typo in method name
  • Loading branch information
MortimerGoro committed Nov 16, 2015
2 parents 353902c + dae99ec commit a2f1e98
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions MGSwipeTableCell/MGSwipeTableCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ -(void) expandToOffset:(CGFloat) offset settings:(MGSwipeExpansionSettings*) set
[self layoutExpansion:offset];
}

-(void) endExpansioAnimated:(BOOL) animated
-(void) endExpansionAnimated:(BOOL) animated
{
if (_expandedButton) {
_expandedButtonAnimated = _expandedButton;
Expand Down Expand Up @@ -942,9 +942,9 @@ - (void)setSwipeOffset:(CGFloat) newOffset;
MGSwipeButtonsView * activeButtons = sign < 0 ? _rightView : _leftView;
if (!activeButtons || offset == 0) {
if (_leftView)
[_leftView endExpansioAnimated:NO];
[_leftView endExpansionAnimated:NO];
if (_rightView)
[_rightView endExpansioAnimated:NO];
[_rightView endExpansionAnimated:NO];
[self hideSwipeOverlayIfNeeded];
_targetOffset = 0;
[self updateState:MGSwipeStateNone];
Expand Down Expand Up @@ -982,7 +982,7 @@ - (void)setSwipeOffset:(CGFloat) newOffset;
[self updateState:i ? MGSwipeStateExpandingRightToLeft : MGSwipeStateExpandingLeftToRight];
}
else {
[view endExpansioAnimated:YES];
[view endExpansionAnimated:YES];
_activeExpansion = nil;
CGFloat t = MIN(1.0f, offset/view.bounds.size.width);
[view transition:settings[i].transition percent:t];
Expand Down Expand Up @@ -1037,7 +1037,7 @@ -(void) expandSwipe: (MGSwipeDirection) direction animated: (BOOL) animated
__weak MGSwipeButtonsView * expansionView = direction == MGSwipeDirectionLeftToRight ? _leftView : _rightView;
__weak MGSwipeTableCell * weakself = self;
[self setSwipeOffset:buttonsView.bounds.size.width * s * expSetting.threshold * 2 animation:expSetting.triggerAnimation completion:^{
[expansionView endExpansioAnimated:YES];
[expansionView endExpansionAnimated:YES];
[weakself setSwipeOffset:0 animated:NO completion:nil];
}];
}
Expand Down Expand Up @@ -1165,7 +1165,7 @@ -(void) panHandler: (UIPanGestureRecognizer *)gesture
[self setSwipeOffset:_targetOffset animation:expSettings.triggerAnimation completion:^{
BOOL autoHide = [expansion handleClick:expandedButton fromExpansion:YES];
if (autoHide) {
[expansion endExpansioAnimated:NO];
[expansion endExpansionAnimated:NO];
}
if (backgroundColor) {
expandedButton.backgroundColor = backgroundColor;
Expand Down

0 comments on commit a2f1e98

Please sign in to comment.