panel check
This commit is contained in:
parent
822c086927
commit
2fd72f9ad0
@ -126,6 +126,9 @@ typedef NS_ENUM(NSInteger, MFNumberOfDrawers) {
|
|||||||
- (UIStatusBarStyle)getDefaultStatusBarStyle;
|
- (UIStatusBarStyle)getDefaultStatusBarStyle;
|
||||||
- (nullable UIColor *)getDefaultStatusBarBackgroundColor;
|
- (nullable UIColor *)getDefaultStatusBarBackgroundColor;
|
||||||
|
|
||||||
|
/// Returns true if a panel is showing.
|
||||||
|
- (BOOL)isAPanelShowing;
|
||||||
|
|
||||||
#pragma mark - Main Subclassables
|
#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.
|
// 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;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (BOOL)isAPanelShowing {
|
||||||
|
return fabs(self.mainViewLeading.constant) > 1;
|
||||||
|
}
|
||||||
|
|
||||||
#pragma mark - Getters
|
#pragma mark - Getters
|
||||||
|
|
||||||
// Returns the desired view or falls back. Hot fix until we can get away from using these functions...
|
// 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