Merge branch 'feature/viewInRoomArAtomicTemplate' of https://gitlab.verizon.com/BPHV_MIPS/mvm_core_ui into develop

This commit is contained in:
rajampetS 2021-06-10 10:38:00 +05:30
commit 2093b98a58
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...