Merge branch 'feature/panel_showing' into 'develop'
panel check See merge request BPHV_MIPS/mvm_core_ui!725
This commit is contained in:
commit
c0ae27eab2
@ -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.
|
||||
|
||||
@ -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...
|
||||
|
||||
Loading…
Reference in New Issue
Block a user