Skip to content

Commit

Permalink
fix crash when opening an already opened side
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelochs committed Nov 22, 2016
1 parent 6322607 commit 383ec9c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
10 changes: 7 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Changelog

## 3.0.1

* Fixes a crash that occured when triggering the swipe gesture on an already opened side multiple times.

## 3.0

This is a complete rewrite, listing all changes would be too much here. Basically everything changed. Some key facts:

- New example app
- New view controller containment system
- Customizable presentation animations
* New example app
* New view controller containment system
* Customizable presentation animations
7 changes: 5 additions & 2 deletions ViewDeck/IIViewDeckController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,11 @@ - (void)interactiveTransitionRecognized:(UIGestureRecognizer *)recognizer {

[self openSide:side animated:YES notify:YES completion:^(BOOL cancelled){
// cancel gesture recognizer:
recognizer.enabled = NO;
recognizer.enabled = YES;
if (cancelled) {
BOOL recognizerState = recognizer.enabled;
recognizer.enabled = NO;
recognizer.enabled = recognizerState;
}
self.currentInteractiveGesture = nil;
}];
} break;
Expand Down

0 comments on commit 383ec9c

Please sign in to comment.