Skip to content

Commit

Permalink
fix programmatic call to setSwipeOffset when swipeView is not yet cre…
Browse files Browse the repository at this point in the history
…ated
  • Loading branch information
MortimerGoro committed Nov 16, 2015
1 parent a2f1e98 commit 3950234
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MGSwipeTableCell/MGSwipeTableCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -1073,6 +1073,9 @@ -(void) setSwipeOffset:(CGFloat)offset animated: (BOOL) animated completion:(voi

-(void) setSwipeOffset:(CGFloat)offset animation: (MGSwipeAnimation *) animation completion:(void(^)()) completion
{
if (offset !=0) {
[self createSwipeViewIfNeeded];
}
_animationCompletion = completion;
if (_displayLink) {
[_displayLink invalidate];
Expand Down

0 comments on commit 3950234

Please sign in to comment.