summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSatbir Tanda <satbirtanda@gmail.com>2019-07-31 13:51:41 -0700
committerSatbir Tanda <satbirtanda@gmail.com>2019-07-31 13:51:41 -0700
commitce10b67322e75ad31c84fda4661a77d657387657 (patch)
treed45518c8a73bd6280b1e219080361365ec40a9f2
parente8aac24d9aad63e5f0fcbf60b810572d01a0f9ab (diff)
downloadsdl_ios-ce10b67322e75ad31c84fda4661a77d657387657.tar.gz
Update SDLLockScreenViewController.m
Set gesture to nil after its removed
-rw-r--r--SmartDeviceLink/SDLLockScreenViewController.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/SmartDeviceLink/SDLLockScreenViewController.m b/SmartDeviceLink/SDLLockScreenViewController.m
index afda3b4d4..9c5a14c99 100644
--- a/SmartDeviceLink/SDLLockScreenViewController.m
+++ b/SmartDeviceLink/SDLLockScreenViewController.m
@@ -24,7 +24,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (weak, nonatomic) IBOutlet UIImageView *arrowUpImageView;
@property (weak, nonatomic) IBOutlet UIImageView *arrowDownImageView;
@property (strong, nonatomic) SwipeGestureCallbackBlock dismissGestureCallback;
-@property (strong, nonatomic) UISwipeGestureRecognizer *swipeGesture;
+@property (strong, nonatomic, nullable) UISwipeGestureRecognizer *swipeGesture;
@end
@@ -90,6 +90,7 @@ NS_ASSUME_NONNULL_BEGIN
- (void)removeDismissGesture {
[self.view removeGestureRecognizer:self.swipeGesture];
+ self.swipeGesture = nil;
}
- (void)sdl_didSwipeToDismiss:(UISwipeGestureRecognizer *)gesture {