diff --git a/Sample/Sample Application.xcodeproj/project.xcworkspace/xcshareddata/Sample Application.xccheckout b/Sample/Sample Application.xcodeproj/project.xcworkspace/xcshareddata/Sample Application.xccheckout deleted file mode 100644 index 92cdf99..0000000 --- a/Sample/Sample Application.xcodeproj/project.xcworkspace/xcshareddata/Sample Application.xccheckout +++ /dev/null @@ -1,41 +0,0 @@ - - - - - IDESourceControlProjectFavoriteDictionaryKey - - IDESourceControlProjectIdentifier - 86C041C4-9096-49EC-977F-541874C78420 - IDESourceControlProjectName - Sample Application - IDESourceControlProjectOriginsDictionary - - 8291C368-56D8-4A02-B2D5-7233EAEBF895 - https://github.com/pkluz/PKRevealController.git - - IDESourceControlProjectPath - Sample/Sample Application.xcodeproj/project.xcworkspace - IDESourceControlProjectRelativeInstallPathDictionary - - 8291C368-56D8-4A02-B2D5-7233EAEBF895 - ../../.. - - IDESourceControlProjectURL - https://github.com/pkluz/PKRevealController.git - IDESourceControlProjectVersion - 110 - IDESourceControlProjectWCCIdentifier - 8291C368-56D8-4A02-B2D5-7233EAEBF895 - IDESourceControlProjectWCConfigurations - - - IDESourceControlRepositoryExtensionIdentifierKey - public.vcs.git - IDESourceControlWCCIdentifierKey - 8291C368-56D8-4A02-B2D5-7233EAEBF895 - IDESourceControlWCCName - PKRevealController - - - - diff --git a/Sample/Sample Application/SMPLAppDelegate.m b/Sample/Sample Application/SMPLAppDelegate.m index daa1361..d1c4c02 100644 --- a/Sample/Sample Application/SMPLAppDelegate.m +++ b/Sample/Sample Application/SMPLAppDelegate.m @@ -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. diff --git a/Source/PKRevealController/PKRevealController.h b/Source/PKRevealController/PKRevealController.h index 4a9a382..d9ee523 100644 --- a/Source/PKRevealController/PKRevealController.h +++ b/Source/PKRevealController/PKRevealController.h @@ -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; diff --git a/Source/PKRevealController/PKRevealController.m b/Source/PKRevealController/PKRevealController.m index 6ecd223..0553b6d 100644 --- a/Source/PKRevealController/PKRevealController.m +++ b/Source/PKRevealController/PKRevealController.m @@ -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;