Skip to content

Commit b0bb27c

Browse files
committed
Expose BOOLs for inspecting view visibility
1 parent 7edfa1b commit b0bb27c

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

ECSlidingViewController/Vendor/ECSlidingViewController/ECSlidingViewController.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,15 @@ typedef enum {
124124
/** Slides the top view back to the center. */
125125
- (void)resetTopView;
126126

127+
/** Returns true if the underLeft view is showing (even partially) */
128+
- (BOOL)underLeftShowing;
129+
130+
/** Returns true if the underRight view is showing (even partially) */
131+
- (BOOL)underRightShowing;
132+
133+
/** Returns true if the top view is completely off the screen */
134+
- (BOOL)topViewIsOffScreen;
135+
127136
@end
128137

129138
/** UIViewController extension */

ECSlidingViewController/Vendor/ECSlidingViewController/ECSlidingViewController.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ @interface ECSlidingViewController()
1616
@property (nonatomic, strong) UIPanGestureRecognizer *panGesture;
1717
@property (nonatomic, strong) UITapGestureRecognizer *resetTapGesture;
1818

19-
- (BOOL)underLeftShowing;
20-
- (BOOL)underRightShowing;
21-
- (BOOL)topViewIsOffScreen;
22-
2319
- (NSUInteger)autoResizeToFillScreen;
2420
- (UIView *)topView;
2521
- (UIView *)underLeftView;

0 commit comments

Comments
 (0)