Skip to content

Commit 440a9f9

Browse files
committed
Added the getter for the side opened
1 parent efd3126 commit 440a9f9

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

PPRevealSideViewController/PPRevealSideviewController/PPRevealSideViewController.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@ typedef NSUInteger PPRevealSideOptions;
230230
*/
231231
@property (nonatomic, assign) id <PPRevealSideViewControllerDelegate> delegate;
232232

233+
@property (nonatomic, readonly) PPRevealSideDirection sideDirectionOpened;
234+
233235
/**---------------------------------------------------------------------------------------
234236
* @name Init method
235237
* ---------------------------------------------------------------------------------------

PPRevealSideViewController/PPRevealSideviewController/PPRevealSideViewController.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,13 @@ - (void) setTapInteractionsWhenOpened:(PPRevealSideInteractions)tapInteractionsW
507507
[self didChangeValueForKey:@"tapInteractionsWhenOpened"];
508508
}
509509

510+
#pragma mark - Getters
511+
512+
- (PPRevealSideDirection) sideDirectionOpened
513+
{
514+
return [self getSideToClose];
515+
}
516+
510517
#pragma mark - Private methods
511518

512519
- (void) setRootViewController:(UIViewController *)controller {

0 commit comments

Comments
 (0)