Merge branch 'develop' into feature/audio_player_behavior

This commit is contained in:
Kevin G Christiano 2021-06-04 09:57:58 -04:00
commit e331c4299e
2 changed files with 7 additions and 0 deletions

View File

@ -126,6 +126,9 @@ typedef NS_ENUM(NSInteger, MFNumberOfDrawers) {
- (UIStatusBarStyle)getDefaultStatusBarStyle;
- (nullable UIColor *)getDefaultStatusBarBackgroundColor;
/// Returns true if a panel is showing.
- (BOOL)isAPanelShowing;
#pragma mark - Main Subclassables
// Can subclass to set threshold for when the drawers are permanently extended. Default is 1000 for the left panel and 2000 for both.

View File

@ -1029,6 +1029,10 @@ CGFloat const PanelAnimationDuration = 0.2;
return nil;
}
- (BOOL)isAPanelShowing {
return fabs(self.mainViewLeading.constant) > 1;
}
#pragma mark - Getters
// Returns the desired view or falls back. Hot fix until we can get away from using these functions...