diff --git a/Pod/Classes/MWPhotoBrowser.h b/Pod/Classes/MWPhotoBrowser.h index 4225f9cc1..e0cc7b50a 100644 --- a/Pod/Classes/MWPhotoBrowser.h +++ b/Pod/Classes/MWPhotoBrowser.h @@ -52,6 +52,7 @@ @property (nonatomic) BOOL autoPlayOnAppear; @property (nonatomic) NSUInteger delayToHideElements; @property (nonatomic, readonly) NSUInteger currentIndex; +@property (nonatomic, readonly) BOOL isInGrid; // Customise image selection icons as they are the only icons with a colour tint // Icon should be located in the app's main bundle diff --git a/Pod/Classes/MWPhotoBrowser.m b/Pod/Classes/MWPhotoBrowser.m index 0de7faaab..6cb2f7ec2 100644 --- a/Pod/Classes/MWPhotoBrowser.m +++ b/Pod/Classes/MWPhotoBrowser.m @@ -1081,7 +1081,7 @@ - (void)updateNavigation { // Title NSUInteger numberOfPhotos = [self numberOfPhotos]; - if (_gridController) { + if (self.isInGrid) { if (_gridController.selectionMode) { self.title = NSLocalizedString(@"Select Photos", nil); } else { @@ -1301,13 +1301,17 @@ - (void)positionVideoLoadingIndicator { #pragma mark - Grid +- (BOOL)isInGrid{ + return _gridController != nil; +} + - (void)showGridAnimated { [self showGrid:YES]; } - (void)showGrid:(BOOL)animated { - if (_gridController) return; + if (self.isInGrid) return; // Clear video [self clearCurrentVideo];