Merge branch 'feature/panel_showing' into 'develop'

panel check

See merge request BPHV_MIPS/mvm_core_ui!725
This commit is contained in:
Pfeil, Scott Robert 2021-06-02 19:06:24 +00:00
commit c0ae27eab2
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...