Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Add allowshadow property #188

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

1 change: 1 addition & 0 deletions Sample/Sample Application/SMPLAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
rightViewController:[self rightViewController]];
// Step 3: Configure.
self.revealController.delegate = self;
self.revealController.allowsShadow = YES;
self.revealController.animationDuration = 0.25;

// Step 4: Apply.
Expand Down
3 changes: 3 additions & 0 deletions Source/PKRevealController/PKRevealController.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ FOUNDATION_EXTERN NSString * const PKRevealControllerRecognizesResetTapOnFrontVi
/// Whether to allow the user to draw further than the respective controllers min width. Dampened to stop at its max width. Defaults to YES.
@property (nonatomic, assign, readwrite) BOOL allowsOverdraw;

/// Whether to allow the front view draw shadow.
@property (nonatomic, assign, readwrite) BOOL allowsShadow;

/// Whether to disable front view interaction whenever the controller's state does not equal PKRevealControllerShowsFrontViewController. Recommended for smaller screens.
@property (nonatomic, assign, readwrite) BOOL disablesFrontViewInteraction;

Expand Down
2 changes: 1 addition & 1 deletion Source/PKRevealController/PKRevealController.m
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ - (void)setupContainerViews
self.leftView.viewController = self.leftViewController;
self.frontView.viewController = self.frontViewController;

self.frontView.shadow = YES;
self.frontView.shadow = self.allowsShadow;

self.leftView.hidden = YES;
self.rightView.hidden = YES;
Expand Down