├── CDRTranslucentSideBar ├── en.lproj │ └── InfoPlist.strings ├── Resources │ ├── burger.png │ ├── background1.jpg │ └── burger@2x.png ├── CDRAppDelegate.h ├── CDRTranslucentSideBar-Prefix.pch ├── main.m ├── Images.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── LaunchImage.launchimage │ │ └── Contents.json ├── CDRViewController.h ├── CDRTranslucentSideBar-Info.plist ├── CDRTranslucentSideBar │ ├── CDRTranslucentSideBar.h │ └── CDRTranslucentSideBar.m ├── CDRAppDelegate.m ├── Base.lproj │ └── Main.storyboard └── CDRViewController.m ├── CDRTranslucentSideBarTests ├── en.lproj │ └── InfoPlist.strings ├── CDRTranslucentSideBarTests-Info.plist └── CDRTranslucentSideBarTests.m ├── CDRTranslucentSideBar1.gif ├── CDRTranslucentSideBar2.gif ├── .clang-format ├── .gitignore ├── CDRTranslucentSideBar.podspec ├── README.md ├── LICENSE └── CDRTranslucentSideBar.xcodeproj └── project.pbxproj /CDRTranslucentSideBar/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /CDRTranslucentSideBarTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /CDRTranslucentSideBar1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chidori-app/CDRTranslucentSideBar/HEAD/CDRTranslucentSideBar1.gif -------------------------------------------------------------------------------- /CDRTranslucentSideBar2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chidori-app/CDRTranslucentSideBar/HEAD/CDRTranslucentSideBar2.gif -------------------------------------------------------------------------------- /CDRTranslucentSideBar/Resources/burger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chidori-app/CDRTranslucentSideBar/HEAD/CDRTranslucentSideBar/Resources/burger.png -------------------------------------------------------------------------------- /CDRTranslucentSideBar/Resources/background1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chidori-app/CDRTranslucentSideBar/HEAD/CDRTranslucentSideBar/Resources/background1.jpg -------------------------------------------------------------------------------- /CDRTranslucentSideBar/Resources/burger@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chidori-app/CDRTranslucentSideBar/HEAD/CDRTranslucentSideBar/Resources/burger@2x.png -------------------------------------------------------------------------------- /.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: Google 2 | ColumnLimit: 160 3 | IndentWidth: 4 4 | BreakBeforeBraces: Linux 5 | ObjCSpaceAfterProperty: true 6 | ObjCSpaceBeforeProtocolList: true 7 | AllowShortFunctionsOnASingleLine: false 8 | AllowShortLoopsOnASingleLine: false 9 | AllowShortFunctionsOnASingleLine: false 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Finder 2 | .DS_Store 3 | 4 | # Xcode 5 | build/* 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | *.xcworkspace 15 | !default.xcworkspace 16 | xcuserdata 17 | profile 18 | *.moved-aside 19 | 20 | -------------------------------------------------------------------------------- /CDRTranslucentSideBar/CDRAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // CDRAppDelegate.h 3 | // CDRTranslucentSideBar 4 | // 5 | // Created by UetaMasamichi on 2014/06/02. 6 | // Copyright (c) 2014年 nscallop. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CDRAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /CDRTranslucentSideBar/CDRTranslucentSideBar-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | #import 15 | #import 16 | #endif 17 | -------------------------------------------------------------------------------- /CDRTranslucentSideBar/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // CDRTranslucentSideBar 4 | // 5 | // Created by UetaMasamichi on 2014/06/02. 6 | // Copyright (c) 2014年 nscallop. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "CDRAppDelegate.h" 12 | 13 | int main(int argc, char * argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([CDRAppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /CDRTranslucentSideBar/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "40x40", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "60x60", 16 | "scale" : "2x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /CDRTranslucentSideBar/CDRViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CDRViewController.h 3 | // CDRTranslucentSideBar 4 | // 5 | // Created by UetaMasamichi on 2014/06/02. 6 | // Copyright (c) 2014年 nscallop. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CDRViewController : UIViewController 12 | 13 | - (IBAction)OnSideBarButtonTapped:(id)sender; 14 | - (IBAction)OnRightSideBarButtonTapped:(id)sender; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /CDRTranslucentSideBar/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "portrait", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "7.0", 16 | "scale" : "2x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /CDRTranslucentSideBarTests/CDRTranslucentSideBarTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | jp.nscallop.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /CDRTranslucentSideBarTests/CDRTranslucentSideBarTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // CDRTranslucentSideBarTests.m 3 | // CDRTranslucentSideBarTests 4 | // 5 | // Created by UetaMasamichi on 2014/06/02. 6 | // Copyright (c) 2014年 nscallop. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CDRTranslucentSideBarTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation CDRTranslucentSideBarTests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /CDRTranslucentSideBar.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | 3 | s.name = "CDRTranslucentSideBar" 4 | s.version = "1.0.3" 5 | s.summary = "CDRTranslucentSideBar is a useful blurred sidebar menu library for iOS." 6 | s.description = <<-DESC 7 | CDRTranslucentSideBar is a useful sidebar menu library for iOS. 8 | You can craete beautiful blurred sidebar using CDRTranslucentSideBar. 9 | DESC 10 | s.homepage = "https://github.com/chidori-app/CDRTranslucentSideBar" 11 | s.screenshots = "https://raw.githubusercontent.com/chidori-app/CDRTranslucentSideBar/master/CDRTranslucentSideBar1.gif", "https://raw.githubusercontent.com/chidori-app/CDRTranslucentSideBar/master/CDRTranslucentSideBar2.gif" 12 | s.license = "Apache License, Version 2.0" 13 | s.author = { "maasaamiichii" => "masamichi1023@gmail.com" } 14 | s.platform = :ios, "7.0" 15 | s.source = { :git => "https://github.com/chidori-app/CDRTranslucentSideBar.git", :tag => s.version.to_s } 16 | s.source_files = "CDRTranslucentSideBar/CDRTranslucentSideBar" 17 | s.requires_arc = true 18 | end 19 | -------------------------------------------------------------------------------- /CDRTranslucentSideBar/CDRTranslucentSideBar-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | jp.nscallop.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0.2 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /CDRTranslucentSideBar/CDRTranslucentSideBar/CDRTranslucentSideBar.h: -------------------------------------------------------------------------------- 1 | // 2 | // CDRTranslucentSideBar.h 3 | // CDRTranslucentSideBar 4 | // 5 | // Created by UetaMasamichi on 2014/06/16. 6 | // Copyright (c) 2014年 nscallop. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class CDRTranslucentSideBar; 12 | @protocol CDRTranslucentSideBarDelegate 13 | @optional 14 | - (void)sideBar:(CDRTranslucentSideBar *)sideBar didAppear:(BOOL)animated; 15 | - (void)sideBar:(CDRTranslucentSideBar *)sideBar willAppear:(BOOL)animated; 16 | - (void)sideBar:(CDRTranslucentSideBar *)sideBar didDisappear:(BOOL)animated; 17 | - (void)sideBar:(CDRTranslucentSideBar *)sideBar willDisappear:(BOOL)animated; 18 | @end 19 | 20 | @interface CDRTranslucentSideBar : UIViewController 21 | 22 | @property (nonatomic, assign) CGFloat sideBarWidth; 23 | @property (nonatomic, assign) CGFloat animationDuration; 24 | @property (nonatomic) BOOL translucent; 25 | @property (nonatomic) UIBarStyle translucentStyle; 26 | @property (nonatomic) CGFloat translucentAlpha; 27 | @property (nonatomic, strong) UIColor *translucentTintColor; 28 | @property (readonly) BOOL hasShown; 29 | @property (readonly) BOOL showFromRight; 30 | @property BOOL isCurrentPanGestureTarget; 31 | @property NSInteger tag; 32 | 33 | @property (nonatomic, weak) id delegate; 34 | 35 | - (instancetype)init; 36 | - (instancetype)initWithDirectionFromRight:(BOOL)showFromRight; 37 | 38 | - (void)show; 39 | - (void)showAnimated:(BOOL)animated; 40 | - (void)showInViewController:(UIViewController *)controller; 41 | - (void)showInViewController:(UIViewController *)controller animated:(BOOL)animated; 42 | 43 | - (void)dismiss; 44 | - (void)dismissAnimated:(BOOL)animated; 45 | 46 | - (void)handlePanGestureToShow:(UIPanGestureRecognizer *)recognizer inView:(UIView *)view; 47 | - (void)handlePanGestureToShow:(UIPanGestureRecognizer *)recognizer inViewController:(UIViewController *)controller; 48 | 49 | - (void)setContentViewInSideBar:(UIView *)contentView; 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /CDRTranslucentSideBar/CDRAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // CDRAppDelegate.m 3 | // CDRTranslucentSideBar 4 | // 5 | // Created by UetaMasamichi on 2014/06/02. 6 | // Copyright (c) 2014年 nscallop. All rights reserved. 7 | // 8 | 9 | #import "CDRAppDelegate.h" 10 | 11 | @implementation CDRAppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 14 | // Override point for customization after application launch. 15 | return YES; 16 | } 17 | 18 | - (void)applicationWillResignActive:(UIApplication *)application { 19 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 20 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 21 | } 22 | 23 | - (void)applicationDidEnterBackground:(UIApplication *)application { 24 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 25 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 26 | } 27 | 28 | - (void)applicationWillEnterForeground:(UIApplication *)application { 29 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 30 | } 31 | 32 | - (void)applicationDidBecomeActive:(UIApplication *)application { 33 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 34 | } 35 | 36 | - (void)applicationWillTerminate:(UIApplication *)application { 37 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /CDRTranslucentSideBar/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | CDRTranslucentSideBar 2 | ===================== 3 | 4 | CDRTranslucentSideBar is a useful sidebar menu library for iOS. You can craete beautiful blurred sidebar using CDRTranslucentSideBar. 5 | 6 | ![CDRTranslucentSideBar1](https://raw.githubusercontent.com/chidori-app/CDRTranslucentSideBar/master/CDRTranslucentSideBar1.gif)   7 | ![CDRTranslucentSideBar2](https://raw.githubusercontent.com/chidori-app/CDRTranslucentSideBar/master/CDRTranslucentSideBar2.gif) 8 | 9 | 10 | ##How To Get Started 11 | 12 | ###Manual Installation 13 | 14 | - Download source code. 15 | - Add CDRTranslucentSideBar.h and CDRTranslucentSideBar.m from CDRTranslucentSideBar folder to your project. 16 | 17 | ### Installation with CocoaPods 18 | pod 'CDRTranslucentSideBar' 19 | 20 | ##Requirements 21 | iOS7.0 or higher. 22 | 23 | 24 | ##Usage 25 | 26 | ###Set up 27 | Import `CDRTranslucentSideBar.h` into ViewController and create property of sidebar. 28 | 29 | ```objective-c 30 | #import "CDRTranslucentSideBar.h" 31 | 32 | @interface CDRViewController () 33 | @property (nonatomic, strong) CDRTranslucentSideBar *sideBar; 34 | @property (nonatomic, strong) CDRTranslucentSideBar *rightSideBar; 35 | 36 | @end 37 | ``` 38 | 39 | ###Initialize 40 | Initialize the sidebar and set properties in viewDidLoad. 41 | ```objective-c 42 | self.sideBar = [[CDRTranslucentSideBar alloc] init]; 43 | self.sideBar.delegate = self; 44 | self.sideBar.tag = 0; 45 | 46 | //Example of Right Sidebar 47 | self.rightSideBar = [[CDRTranslucentSideBar alloc] initWithDirectionFromRight:YES]; 48 | self.rightSideBar.delegate = self; 49 | self.rightSideBar.translucentStyle = UIBarStyleBlack; 50 | self.rightSideBar.tag = 1; 51 | ``` 52 | 53 | ####sideBarWidth 54 | The sideBarWidth value. You can change the sidebar width by changing this value. 55 | 56 | ####animationDuration 57 | The animation duration value to show sidebar. This property specify the duration to show sidebar by action. 58 | 59 | ####translucentStyle 60 | CDRTranslucentSideBar uses UIToolbar to provide blur effect. This property specifies its appearance. 61 | 62 | 63 | ###Set Content of Sidebar 64 | Set content of sidebar by `setContentViewInSideBar`. 65 | You can use subclass of UIView for contentView, like UITableView. 66 | 67 | ```objective-c 68 | //Example of Left Sidebar 69 | UITableView *tableView = [[UITableView alloc] init]; 70 | tableView.dataSource = self; 71 | tableView.delegate = self; 72 | 73 | // Set ContentView in SideBar 74 | [self.sideBar setContentViewInSideBar:tableView]; 75 | 76 | ``` 77 | 78 | 79 | ###Show Sidebar 80 | To show the sidebar using BarButtonItem, call show method. 81 | 82 | ```objective-c 83 | - (IBAction)OnSideBarButtonTapped:(id)sender 84 | { 85 | [self.sideBar show]; 86 | } 87 | 88 | ``` 89 | 90 | 91 | 92 | ###Set PanGestureRecognizer 93 | CDRTranslucentSideBar can be shown by pan gesture. 94 | Create `UIPangestureRecognizer` and action to handle the gesture. 95 | 96 | ```objective-c 97 | UIPanGestureRecognizer *panGestureRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePanGesture:)]; 98 | 99 | [self.view addGestureRecognizer:panGestureRecognizer]; 100 | ``` 101 | 102 | ####PanGesture Handler 103 | Create the action to handle the gesture. 104 | 105 | ```objective-c 106 | - (void)handlePanGesture:(UIPanGestureRecognizer *)recognizer 107 | { 108 | 109 | // if you have left and right sidebar, you can control the pan gesture by start point. 110 | if (recognizer.state == UIGestureRecognizerStateBegan) { 111 | CGPoint startPoint = [recognizer locationInView:self.view]; 112 | 113 | // Left SideBar 114 | if (startPoint.x < self.view.bounds.size.width / 2.0) { 115 | self.sideBar.isCurrentPanGestureTarget = YES; 116 | } 117 | // Right SideBar 118 | else { 119 | self.rightSideBar.isCurrentPanGestureTarget = YES; 120 | } 121 | } 122 | 123 | [self.sideBar handlePanGestureToShow:recognizer inView:self.view]; 124 | [self.rightSideBar handlePanGestureToShow:recognizer inView:self.view]; 125 | 126 | // if you have only one sidebar, do like following 127 | 128 | // self.sideBar.isCurrentPanGestureTarget = YES; 129 | //[self.sideBar handlePanGestureToShow:recognizer inView:self.view]; 130 | } 131 | 132 | ``` 133 | 134 | ###Delegates 135 | CDRTranslucentSideBar has four delegate methods. 136 | 137 | - `- (void)sideBar:(CDRTranslucentSideBar *)sideBar didAppear:(BOOL)animated;` 138 | - `- (void)sideBar:(CDRTranslucentSideBar *)sideBar willAppear:(BOOL)animated;` 139 | - `- (void)sideBar:(CDRTranslucentSideBar *)sideBar didDisappear:(BOOL)animated;` 140 | - `- (void)sideBar:(CDRTranslucentSideBar *)sideBar willDisappear:(BOOL)animated;` 141 | 142 | ##Example 143 | See the sample project `CDRTranslucentSideBar.xcodeproj`. 144 | 145 | ##FAQ 146 | ###How to add the side bar under navigation bar? 147 | Please check this issue. [don't show navigation bar item of main screen in slide menu like this plese give suggition](https://github.com/chidori-app/CDRTranslucentSideBar/issues/5) 148 | 149 | 150 | ##Credits 151 | CDRTranslucentSideBar was originally created by [Masamichi Ueta](http://www.uetamasamichi.com) in the development of [Chidori](http://chidori.nscallop.jp). 152 | 153 | CDRTranslucentSideBar is used in [Chidori](http://chidori.nscallop.jp), iOS application. 154 | 155 | ##Contact 156 | Ask nscallop on Twitter ([@nscallop](https://twitter.com/nscallop)) 157 | 158 | 159 | ##License 160 | CDRTranslucentSideBar is available under the apache 2.0 license. See the LICENSE file for more info. -------------------------------------------------------------------------------- /CDRTranslucentSideBar/CDRViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // CDRViewController.m 3 | // CDRTranslucentSideBar 4 | // 5 | // Created by UetaMasamichi on 2014/06/02. 6 | // Copyright (c) 2014年 nscallop. All rights reserved. 7 | // 8 | 9 | #import "CDRViewController.h" 10 | #import "CDRTranslucentSideBar.h" 11 | 12 | @interface CDRViewController () 13 | @property (nonatomic, strong) CDRTranslucentSideBar *sideBar; 14 | @property (nonatomic, strong) CDRTranslucentSideBar *rightSideBar; 15 | 16 | @end 17 | 18 | @implementation CDRViewController 19 | 20 | - (void)viewDidLoad { 21 | [super viewDidLoad]; 22 | 23 | // Create SideBar and Set Properties 24 | self.sideBar = [[CDRTranslucentSideBar alloc] init]; 25 | self.sideBar.sideBarWidth = 200; 26 | self.sideBar.delegate = self; 27 | self.sideBar.tag = 0; 28 | 29 | // Create Right SideBar 30 | self.rightSideBar = [[CDRTranslucentSideBar alloc] initWithDirectionFromRight:YES]; 31 | self.rightSideBar.delegate = self; 32 | self.rightSideBar.translucentStyle = UIBarStyleBlack; 33 | self.rightSideBar.tag = 1; 34 | 35 | // Add PanGesture to Show SideBar by PanGesture 36 | UIPanGestureRecognizer *panGestureRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePanGesture:)]; 37 | [self.view addGestureRecognizer:panGestureRecognizer]; 38 | 39 | // Create Content of SideBar 40 | UITableView *tableView = [[UITableView alloc] init]; 41 | UIView *v = [[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.size.width, tableView.bounds.size.height)]; 42 | v.backgroundColor = [UIColor clearColor]; 43 | [tableView setTableHeaderView:v]; 44 | [tableView setTableFooterView:v]; 45 | 46 | //If you create UITableViewController and set datasource or delegate to it, don't forget to add childcontroller to this viewController. 47 | //[[self addChildViewController: @"your view controller"]; 48 | tableView.dataSource = self; 49 | tableView.delegate = self; 50 | 51 | // Set ContentView in SideBar 52 | [self.sideBar setContentViewInSideBar:tableView]; 53 | } 54 | 55 | - (void)didReceiveMemoryWarning { 56 | [super didReceiveMemoryWarning]; 57 | } 58 | 59 | - (IBAction)OnSideBarButtonTapped:(id)sender { 60 | [self.sideBar show]; 61 | } 62 | 63 | - (IBAction)OnRightSideBarButtonTapped:(id)sender { 64 | [self.rightSideBar showInViewController:self]; 65 | } 66 | 67 | #pragma mark - Gesture Handler 68 | - (void)handlePanGesture:(UIPanGestureRecognizer *)recognizer { 69 | // if you have left and right sidebar, you can control the pan gesture by start point. 70 | if (recognizer.state == UIGestureRecognizerStateBegan) { 71 | CGPoint startPoint = [recognizer locationInView:self.view]; 72 | 73 | // Left SideBar 74 | if (startPoint.x < self.view.bounds.size.width / 2.0) { 75 | self.sideBar.isCurrentPanGestureTarget = YES; 76 | } 77 | // Right SideBar 78 | else { 79 | self.rightSideBar.isCurrentPanGestureTarget = YES; 80 | } 81 | } 82 | 83 | [self.sideBar handlePanGestureToShow:recognizer inView:self.view]; 84 | [self.rightSideBar handlePanGestureToShow:recognizer inViewController:self]; 85 | 86 | // if you have only one sidebar, do like following 87 | 88 | // self.sideBar.isCurrentPanGestureTarget = YES; 89 | //[self.sideBar handlePanGestureToShow:recognizer inView:self.view]; 90 | } 91 | 92 | #pragma mark - CDRTranslucentSideBarDelegate 93 | - (void)sideBar:(CDRTranslucentSideBar *)sideBar didAppear:(BOOL)animated { 94 | if (sideBar.tag == 0) { 95 | NSLog(@"Left SideBar did appear"); 96 | } 97 | 98 | if (sideBar.tag == 1) { 99 | NSLog(@"Right SideBar did appear"); 100 | } 101 | } 102 | 103 | - (void)sideBar:(CDRTranslucentSideBar *)sideBar willAppear:(BOOL)animated { 104 | if (sideBar.tag == 0) { 105 | NSLog(@"Left SideBar will appear"); 106 | } 107 | 108 | if (sideBar.tag == 1) { 109 | NSLog(@"Right SideBar will appear"); 110 | } 111 | } 112 | 113 | - (void)sideBar:(CDRTranslucentSideBar *)sideBar didDisappear:(BOOL)animated { 114 | if (sideBar.tag == 0) { 115 | NSLog(@"Left SideBar did disappear"); 116 | } 117 | 118 | if (sideBar.tag == 1) { 119 | NSLog(@"Right SideBar did disappear"); 120 | } 121 | } 122 | 123 | - (void)sideBar:(CDRTranslucentSideBar *)sideBar willDisappear:(BOOL)animated { 124 | if (sideBar.tag == 0) { 125 | NSLog(@"Left SideBar will disappear"); 126 | } 127 | 128 | if (sideBar.tag == 1) { 129 | NSLog(@"Right SideBar will disappear"); 130 | } 131 | } 132 | 133 | // This is just a sample for tableview menu 134 | #pragma mark - UITableViewDataSource 135 | - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { 136 | return 2; 137 | } 138 | 139 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { 140 | if (section == 0) { 141 | return 1; 142 | } 143 | else if (section == 1) { 144 | return 3; 145 | } 146 | return 0; 147 | } 148 | 149 | - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { 150 | return nil; 151 | } 152 | 153 | - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { 154 | if (section == 0) { 155 | // StatuBar Height 156 | return 20; 157 | } 158 | else if (section == 1) { 159 | return 44; 160 | } 161 | return 0; 162 | } 163 | 164 | - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { 165 | if (section == 0) { 166 | UIView *clearView = [[UIView alloc] initWithFrame:CGRectZero]; 167 | clearView.backgroundColor = [UIColor clearColor]; 168 | return clearView; 169 | } 170 | else if (section == 1) { 171 | UIView *headerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.size.width, 44)]; 172 | headerView.backgroundColor = [UIColor clearColor]; 173 | UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(15, 0, tableView.bounds.size.width - 15, 44)]; 174 | UIView *separatorLineView = [[UIView alloc] initWithFrame:CGRectMake(15, 44, tableView.bounds.size.width, 0.5f)]; 175 | separatorLineView.backgroundColor = [UIColor blackColor]; 176 | [headerView addSubview:separatorLineView]; 177 | label.text = @"Chidori"; 178 | [headerView addSubview:label]; 179 | return headerView; 180 | } 181 | return nil; 182 | } 183 | 184 | - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { 185 | if (indexPath.section == 0) { 186 | return 0; 187 | } 188 | else if (indexPath.section == 1) { 189 | return 44; 190 | } 191 | return 0; 192 | } 193 | 194 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { 195 | UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell"]; 196 | if (cell == nil) { 197 | cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Cell"]; 198 | cell.backgroundColor = [UIColor clearColor]; 199 | } 200 | 201 | if (indexPath.section == 0) { 202 | return cell; 203 | } 204 | else if (indexPath.section == 1) { 205 | if (indexPath.row == 0) { 206 | cell.textLabel.text = @"Menu 1"; 207 | } 208 | else if (indexPath.row == 1) { 209 | cell.textLabel.text = @"Menu 2"; 210 | } 211 | else if (indexPath.row == 2) { 212 | cell.textLabel.text = @"Menu 3"; 213 | } 214 | } 215 | 216 | return cell; 217 | } 218 | 219 | - (void)tableView:(UITableView *)tableView didHighlightRowAtIndexPath:(NSIndexPath *)indexPath { 220 | tableView.separatorStyle = UITableViewCellSeparatorStyleNone; 221 | tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine; 222 | } 223 | 224 | - (void)tableView:(UITableView *)tableView didUnhighlightRowAtIndexPath:(NSIndexPath *)indexPath { 225 | tableView.separatorStyle = UITableViewCellSeparatorStyleNone; 226 | tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine; 227 | } 228 | 229 | @end 230 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. -------------------------------------------------------------------------------- /CDRTranslucentSideBar/CDRTranslucentSideBar/CDRTranslucentSideBar.m: -------------------------------------------------------------------------------- 1 | // 2 | // CDRTranslucentSideBar.m 3 | // CDRTranslucentSideBar 4 | // 5 | // Created by UetaMasamichi on 2014/06/16. 6 | // Copyright (c) 2014年 nscallop. All rights reserved. 7 | // 8 | 9 | #import "CDRTranslucentSideBar.h" 10 | 11 | #define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending) 12 | 13 | @interface CDRTranslucentSideBar () 14 | @property (nonatomic, strong) UIToolbar *translucentView; 15 | @property (nonatomic, strong) UIView *contentView; 16 | @property (nonatomic, strong) UITapGestureRecognizer *tapGestureRecognizer; 17 | @property (nonatomic, strong) UIPanGestureRecognizer *panGestureRecognizer; 18 | @property CGPoint panStartPoint; 19 | @end 20 | 21 | @implementation CDRTranslucentSideBar 22 | 23 | - (instancetype)init { 24 | self = [super init]; 25 | if (self) { 26 | [self initCDRTranslucentSideBar]; 27 | } 28 | return self; 29 | } 30 | 31 | - (instancetype)initWithDirectionFromRight:(BOOL)showFromRight { 32 | self = [super init]; 33 | if (self) { 34 | _showFromRight = showFromRight; 35 | [self initCDRTranslucentSideBar]; 36 | } 37 | return self; 38 | } 39 | 40 | - (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { 41 | self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; 42 | if (self) { 43 | } 44 | return self; 45 | } 46 | 47 | #pragma mark - Custom Initializer 48 | - (void)initCDRTranslucentSideBar { 49 | _hasShown = NO; 50 | self.isCurrentPanGestureTarget = NO; 51 | 52 | self.sideBarWidth = 200; 53 | self.animationDuration = 0.25f; 54 | 55 | [self initTranslucentView]; 56 | 57 | self.view.backgroundColor = [UIColor clearColor]; 58 | self.tapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTapGesture:)]; 59 | self.tapGestureRecognizer.delegate = self; 60 | [self.view addGestureRecognizer:self.tapGestureRecognizer]; 61 | self.panGestureRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePanGesture:)]; 62 | self.panGestureRecognizer.minimumNumberOfTouches = 1; 63 | self.panGestureRecognizer.maximumNumberOfTouches = 1; 64 | [self.view addGestureRecognizer:self.panGestureRecognizer]; 65 | } 66 | 67 | - (void)initTranslucentView { 68 | if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")) { 69 | CGRect translucentFrame = 70 | CGRectMake(self.showFromRight ? self.view.bounds.size.width : -self.sideBarWidth, 0, self.sideBarWidth, self.view.bounds.size.height); 71 | self.translucentView = [[UIToolbar alloc] initWithFrame:translucentFrame]; 72 | self.translucentView.frame = translucentFrame; 73 | self.translucentView.contentMode = _showFromRight ? UIViewContentModeTopRight : UIViewContentModeTopLeft; 74 | self.translucentView.clipsToBounds = YES; 75 | self.translucentView.barStyle = UIBarStyleDefault; 76 | [self.view.layer insertSublayer:self.translucentView.layer atIndex:0]; 77 | } 78 | } 79 | 80 | #pragma mark - View Life Cycle 81 | - (void)viewDidLoad { 82 | [super viewDidLoad]; 83 | } 84 | 85 | - (void)didReceiveMemoryWarning { 86 | [super didReceiveMemoryWarning]; 87 | } 88 | 89 | - (void)loadView { 90 | [super loadView]; 91 | } 92 | 93 | #pragma mark - Layout 94 | - (BOOL)shouldAutorotate { 95 | return YES; 96 | } 97 | 98 | - (NSUInteger)supportedInterfaceOrientations { 99 | return UIInterfaceOrientationMaskAll; 100 | } 101 | 102 | - (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { 103 | [super willAnimateRotationToInterfaceOrientation:toInterfaceOrientation duration:duration]; 104 | 105 | if ([self isViewLoaded] && self.view.window != nil) { 106 | [self layoutSubviews]; 107 | } 108 | } 109 | 110 | - (void)layoutSubviews { 111 | CGFloat x = self.showFromRight ? self.parentViewController.view.bounds.size.width - self.sideBarWidth : 0; 112 | 113 | if (self.contentView != nil) { 114 | self.contentView.frame = CGRectMake(x, 0, self.sideBarWidth, self.parentViewController.view.bounds.size.height); 115 | } 116 | } 117 | 118 | #pragma mark - Accessor 119 | - (void)setTranslucentStyle:(UIBarStyle)translucentStyle { 120 | self.translucentView.barStyle = translucentStyle; 121 | } 122 | 123 | - (UIBarStyle)translucentStyle { 124 | return self.translucentView.barStyle; 125 | } 126 | 127 | - (void)setTranslucent:(BOOL)translucent { 128 | self.translucentView.translucent = translucent; 129 | } 130 | 131 | - (BOOL)translucent { 132 | return self.translucentView.translucent; 133 | } 134 | 135 | - (void)setTranslucentAlpha:(CGFloat)translucentAlpha { 136 | self.translucentView.alpha = translucentAlpha; 137 | } 138 | 139 | - (CGFloat)translucentAlpha { 140 | return self.translucentView.alpha; 141 | } 142 | 143 | - (void)setTranslucentTintColor:(UIColor *)translucentTintColor { 144 | self.translucentView.barTintColor = translucentTintColor; 145 | } 146 | 147 | - (UIColor *)translucentTintColor { 148 | return self.translucentView.barTintColor; 149 | } 150 | 151 | #pragma mark - Show 152 | - (void)showInViewController:(UIViewController *)controller animated:(BOOL)animated { 153 | if ([self.delegate respondsToSelector:@selector(sideBar:willAppear:)]) { 154 | [self.delegate sideBar:self willAppear:animated]; 155 | } 156 | 157 | [self addToParentViewController:controller callingAppearanceMethods:YES]; 158 | self.view.frame = controller.view.bounds; 159 | 160 | CGFloat parentWidth = self.view.bounds.size.width; 161 | CGRect sideBarFrame = self.view.bounds; 162 | sideBarFrame.origin.x = self.showFromRight ? parentWidth : -self.sideBarWidth; 163 | sideBarFrame.size.width = self.sideBarWidth; 164 | 165 | if (self.contentView != nil) { 166 | self.contentView.frame = sideBarFrame; 167 | } 168 | sideBarFrame.origin.x = self.showFromRight ? parentWidth - self.sideBarWidth : 0; 169 | 170 | void (^animations)() = ^{ 171 | if (self.contentView != nil) { 172 | self.contentView.frame = sideBarFrame; 173 | } 174 | self.translucentView.frame = sideBarFrame; 175 | }; 176 | void (^completion)(BOOL) = ^(BOOL finished) 177 | { 178 | _hasShown = YES; 179 | self.isCurrentPanGestureTarget = YES; 180 | if (finished && [self.delegate respondsToSelector:@selector(sideBar:didAppear:)]) { 181 | [self.delegate sideBar:self didAppear:animated]; 182 | } 183 | }; 184 | 185 | if (animated) { 186 | [UIView animateWithDuration:self.animationDuration delay:0 options:kNilOptions animations:animations completion:completion]; 187 | } 188 | else { 189 | animations(); 190 | completion(YES); 191 | } 192 | } 193 | 194 | -(void)showInViewController:(UIViewController *)controller { 195 | [self showInViewController:controller animated:YES]; 196 | } 197 | 198 | - (void)showAnimated:(BOOL)animated { 199 | UIViewController *controller = [UIApplication sharedApplication].keyWindow.rootViewController; 200 | while (controller.presentedViewController != nil) { 201 | controller = controller.presentedViewController; 202 | } 203 | [self showInViewController:controller animated:animated]; 204 | } 205 | 206 | - (void)show { 207 | [self showAnimated:YES]; 208 | } 209 | 210 | #pragma mark - Show by Pangesture 211 | - (void)startShow:(CGFloat)startX { 212 | UIViewController *controller = [UIApplication sharedApplication].keyWindow.rootViewController; 213 | while (controller.presentedViewController != nil) { 214 | controller = controller.presentedViewController; 215 | } 216 | [self startShowInViewController:controller startX:startX]; 217 | } 218 | 219 | -(void)startShowInViewController:(UIViewController *)controller startX:(CGFloat)startX{ 220 | [self addToParentViewController:controller callingAppearanceMethods:YES]; 221 | self.view.frame = controller.view.bounds; 222 | 223 | CGFloat parentWidth = self.view.bounds.size.width; 224 | 225 | CGRect sideBarFrame = self.view.bounds; 226 | sideBarFrame.origin.x = self.showFromRight ? parentWidth : -self.sideBarWidth; 227 | sideBarFrame.size.width = self.sideBarWidth; 228 | if (self.contentView != nil) { 229 | self.contentView.frame = sideBarFrame; 230 | } 231 | self.translucentView.frame = sideBarFrame; 232 | } 233 | 234 | - (void)move:(CGFloat)deltaFromStartX { 235 | CGRect sideBarFrame = self.translucentView.frame; 236 | CGFloat parentWidth = self.view.bounds.size.width; 237 | 238 | if (self.showFromRight) { 239 | CGFloat x = deltaFromStartX; 240 | if (deltaFromStartX >= self.sideBarWidth) { 241 | x = self.sideBarWidth; 242 | } 243 | sideBarFrame.origin.x = parentWidth - x; 244 | } 245 | else { 246 | CGFloat x = deltaFromStartX - _sideBarWidth; 247 | if (x >= 0) { 248 | x = 0; 249 | } 250 | sideBarFrame.origin.x = x; 251 | } 252 | 253 | if (self.contentView != nil) { 254 | self.contentView.frame = sideBarFrame; 255 | } 256 | self.translucentView.frame = sideBarFrame; 257 | } 258 | 259 | - (void)showAnimatedFrom:(BOOL)animated deltaX:(CGFloat)deltaXFromStartXToEndX { 260 | if ([self.delegate respondsToSelector:@selector(sideBar:willAppear:)]) { 261 | [self.delegate sideBar:self willAppear:animated]; 262 | } 263 | 264 | CGRect sideBarFrame = self.translucentView.frame; 265 | CGFloat parentWidth = self.view.bounds.size.width; 266 | 267 | sideBarFrame.origin.x = self.showFromRight ? parentWidth - sideBarFrame.size.width : 0; 268 | 269 | void (^animations)() = ^{ 270 | if (self.contentView != nil) { 271 | self.contentView.frame = sideBarFrame; 272 | } 273 | 274 | self.translucentView.frame = sideBarFrame; 275 | }; 276 | void (^completion)(BOOL) = ^(BOOL finished) 277 | { 278 | _hasShown = YES; 279 | if (finished && [self.delegate respondsToSelector:@selector(sideBar:didAppear:)]) { 280 | [self.delegate sideBar:self didAppear:animated]; 281 | } 282 | }; 283 | 284 | if (animated) { 285 | [UIView animateWithDuration:self.animationDuration delay:0 options:kNilOptions animations:animations completion:completion]; 286 | } 287 | else { 288 | animations(); 289 | completion(YES); 290 | } 291 | } 292 | 293 | #pragma mark - Dismiss 294 | - (void)dismiss { 295 | [self dismissAnimated:YES]; 296 | } 297 | 298 | - (void)dismissAnimated:(BOOL)animated { 299 | if ([self.delegate respondsToSelector:@selector(sideBar:willDisappear:)]) { 300 | [self.delegate sideBar:self willDisappear:animated]; 301 | } 302 | 303 | void (^completion)(BOOL) = ^(BOOL finished) 304 | { 305 | [self removeFromParentViewControllerCallingAppearanceMethods:YES]; 306 | _hasShown = NO; 307 | self.isCurrentPanGestureTarget = NO; 308 | if ([self.delegate respondsToSelector:@selector(sideBar:didDisappear:)]) { 309 | [self.delegate sideBar:self didDisappear:animated]; 310 | } 311 | }; 312 | 313 | if (animated) { 314 | CGRect sideBarFrame = self.translucentView.frame; 315 | CGFloat parentWidth = self.view.bounds.size.width; 316 | sideBarFrame.origin.x = self.showFromRight ? parentWidth : -self.sideBarWidth; 317 | [UIView animateWithDuration:self.animationDuration 318 | delay:0 319 | options:UIViewAnimationOptionBeginFromCurrentState 320 | animations: ^{ 321 | if (self.contentView != nil) { 322 | self.contentView.frame = sideBarFrame; 323 | } 324 | self.translucentView.frame = sideBarFrame; 325 | } 326 | 327 | completion:completion]; 328 | } 329 | else { 330 | completion(YES); 331 | } 332 | } 333 | 334 | #pragma mark - Dismiss by Pangesture 335 | - (void)dismissAnimated:(BOOL)animated deltaX:(CGFloat)deltaXFromStartXToEndX { 336 | if ([self.delegate respondsToSelector:@selector(sideBar:willDisappear:)]) { 337 | [self.delegate sideBar:self willDisappear:animated]; 338 | } 339 | 340 | void (^completion)(BOOL) = ^(BOOL finished) 341 | { 342 | [self removeFromParentViewControllerCallingAppearanceMethods:YES]; 343 | _hasShown = NO; 344 | self.isCurrentPanGestureTarget = NO; 345 | if ([self.delegate respondsToSelector:@selector(sideBar:didDisappear:)]) { 346 | [self.delegate sideBar:self didDisappear:animated]; 347 | } 348 | }; 349 | 350 | if (animated) { 351 | CGRect sideBarFrame = self.translucentView.frame; 352 | CGFloat parentWidth = self.view.bounds.size.width; 353 | sideBarFrame.origin.x = self.showFromRight ? parentWidth : -self.sideBarWidth; 354 | 355 | [UIView animateWithDuration:self.animationDuration 356 | delay:0 357 | options:UIViewAnimationOptionBeginFromCurrentState 358 | animations: ^{ 359 | if (self.contentView != nil) { 360 | self.contentView.frame = sideBarFrame; 361 | } 362 | self.translucentView.frame = sideBarFrame; 363 | } 364 | 365 | completion:completion]; 366 | } 367 | else { 368 | completion(YES); 369 | } 370 | } 371 | 372 | #pragma mark - Gesture Handler 373 | - (void)handleTapGesture:(UITapGestureRecognizer *)recognizer { 374 | CGPoint location = [recognizer locationInView:self.view]; 375 | if (!CGRectContainsPoint(self.translucentView.frame, location)) { 376 | [self dismissAnimated:YES]; 377 | } 378 | } 379 | 380 | - (void)handlePanGesture:(UIPanGestureRecognizer *)recognizer { 381 | if (!self.isCurrentPanGestureTarget) { 382 | return; 383 | } 384 | 385 | if (recognizer.state == UIGestureRecognizerStateBegan) { 386 | self.panStartPoint = [recognizer locationInView:self.view]; 387 | } 388 | 389 | if (recognizer.state == UIGestureRecognizerStateChanged) { 390 | CGPoint currentPoint = [recognizer locationInView:self.view]; 391 | if (!self.showFromRight) { 392 | [self move:self.sideBarWidth + currentPoint.x - self.panStartPoint.x]; 393 | } 394 | else { 395 | [self move:self.sideBarWidth + self.panStartPoint.x - currentPoint.x]; 396 | } 397 | } 398 | 399 | if (recognizer.state == UIGestureRecognizerStateEnded) { 400 | CGPoint endPoint = [recognizer locationInView:self.view]; 401 | 402 | if (!self.showFromRight) { 403 | if (self.panStartPoint.x - endPoint.x < self.sideBarWidth / 3) { 404 | [self showAnimatedFrom:YES deltaX:endPoint.x - self.panStartPoint.x]; 405 | } 406 | else { 407 | [self dismissAnimated:YES deltaX:endPoint.x - self.panStartPoint.x]; 408 | } 409 | } 410 | else { 411 | if (self.panStartPoint.x - endPoint.x >= self.sideBarWidth / 3) { 412 | [self showAnimatedFrom:YES deltaX:self.panStartPoint.x - endPoint.x]; 413 | } 414 | else { 415 | [self dismissAnimated:YES deltaX:self.panStartPoint.x - endPoint.x]; 416 | } 417 | } 418 | } 419 | } 420 | 421 | - (void)handlePanGestureToShow:(UIPanGestureRecognizer *)recognizer inView:(UIView *)view { 422 | if (!self.isCurrentPanGestureTarget) { 423 | return; 424 | } 425 | 426 | if (recognizer.state == UIGestureRecognizerStateBegan) { 427 | self.panStartPoint = [recognizer locationInView:view]; 428 | [self startShow:self.panStartPoint.x]; 429 | } 430 | 431 | if (recognizer.state == UIGestureRecognizerStateChanged) { 432 | CGPoint currentPoint = [recognizer locationInView:view]; 433 | if (!self.showFromRight) { 434 | [self move:currentPoint.x - self.panStartPoint.x]; 435 | } 436 | else { 437 | [self move:self.panStartPoint.x - currentPoint.x]; 438 | } 439 | } 440 | 441 | if (recognizer.state == UIGestureRecognizerStateEnded) { 442 | CGPoint endPoint = [recognizer locationInView:view]; 443 | 444 | if (!self.showFromRight) { 445 | if (endPoint.x - self.panStartPoint.x >= self.sideBarWidth / 3) { 446 | [self showAnimatedFrom:YES deltaX:endPoint.x - self.panStartPoint.x]; 447 | } 448 | else { 449 | [self dismissAnimated:YES deltaX:endPoint.x - self.panStartPoint.x]; 450 | } 451 | } 452 | else { 453 | if (self.panStartPoint.x - endPoint.x >= self.sideBarWidth / 3) { 454 | [self showAnimatedFrom:YES deltaX:self.panStartPoint.x - endPoint.x]; 455 | } 456 | else { 457 | [self dismissAnimated:YES deltaX:self.panStartPoint.x - endPoint.x]; 458 | } 459 | } 460 | } 461 | } 462 | 463 | -(void)handlePanGestureToShow:(UIPanGestureRecognizer *)recognizer inViewController:(UIViewController *)controller { 464 | if (!self.isCurrentPanGestureTarget) { 465 | return; 466 | } 467 | 468 | if (recognizer.state == UIGestureRecognizerStateBegan) { 469 | self.panStartPoint = [recognizer locationInView:controller.view]; 470 | [self startShowInViewController:controller startX:self.panStartPoint.x]; 471 | } 472 | 473 | if (recognizer.state == UIGestureRecognizerStateChanged) { 474 | CGPoint currentPoint = [recognizer locationInView:controller.view]; 475 | if (!self.showFromRight) { 476 | [self move:currentPoint.x - self.panStartPoint.x]; 477 | } 478 | else { 479 | [self move:self.panStartPoint.x - currentPoint.x]; 480 | } 481 | } 482 | 483 | if (recognizer.state == UIGestureRecognizerStateEnded) { 484 | CGPoint endPoint = [recognizer locationInView:controller.view]; 485 | 486 | if (!self.showFromRight) { 487 | if (endPoint.x - self.panStartPoint.x >= self.sideBarWidth / 3) { 488 | [self showAnimatedFrom:YES deltaX:endPoint.x - self.panStartPoint.x]; 489 | } 490 | else { 491 | [self dismissAnimated:YES deltaX:endPoint.x - self.panStartPoint.x]; 492 | } 493 | } 494 | else { 495 | if (self.panStartPoint.x - endPoint.x >= self.sideBarWidth / 3) { 496 | [self showAnimatedFrom:YES deltaX:self.panStartPoint.x - endPoint.x]; 497 | } 498 | else { 499 | [self dismissAnimated:YES deltaX:self.panStartPoint.x - endPoint.x]; 500 | } 501 | } 502 | } 503 | } 504 | 505 | - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch { 506 | if (touch.view != gestureRecognizer.view) { 507 | return NO; 508 | } 509 | return YES; 510 | } 511 | 512 | #pragma mark - ContentView 513 | - (void)setContentViewInSideBar:(UIView *)contentView { 514 | if (self.contentView != nil) { 515 | [self.contentView removeFromSuperview]; 516 | } 517 | 518 | self.contentView = contentView; 519 | self.contentView.backgroundColor = [UIColor clearColor]; 520 | [self.view addSubview:self.contentView]; 521 | } 522 | 523 | #pragma mark - Helper 524 | - (void)addToParentViewController:(UIViewController *)parentViewController callingAppearanceMethods:(BOOL)callAppearanceMethods { 525 | if (self.parentViewController != nil) { 526 | [self removeFromParentViewControllerCallingAppearanceMethods:callAppearanceMethods]; 527 | } 528 | 529 | if (callAppearanceMethods) [self beginAppearanceTransition:YES animated:NO]; 530 | [parentViewController addChildViewController:self]; 531 | [parentViewController.view addSubview:self.view]; 532 | [self didMoveToParentViewController:self]; 533 | if (callAppearanceMethods) [self endAppearanceTransition]; 534 | } 535 | 536 | - (void)removeFromParentViewControllerCallingAppearanceMethods:(BOOL)callAppearanceMethods { 537 | if (callAppearanceMethods) [self beginAppearanceTransition:NO animated:NO]; 538 | [self willMoveToParentViewController:nil]; 539 | [self.view removeFromSuperview]; 540 | [self removeFromParentViewController]; 541 | if (callAppearanceMethods) [self endAppearanceTransition]; 542 | } 543 | 544 | @end 545 | -------------------------------------------------------------------------------- /CDRTranslucentSideBar.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 2435927F1951EE3800F93A0D /* burger.png in Resources */ = {isa = PBXBuildFile; fileRef = 2435927D1951EE3800F93A0D /* burger.png */; }; 11 | 243592801951EE3800F93A0D /* burger@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 2435927E1951EE3800F93A0D /* burger@2x.png */; }; 12 | 24A168A01952CFBB003356EB /* background1.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 24A1689F1952CFBB003356EB /* background1.jpg */; }; 13 | 24D92F6A194F37A8003EF820 /* CDRTranslucentSideBar.m in Sources */ = {isa = PBXBuildFile; fileRef = 24D92F69194F37A8003EF820 /* CDRTranslucentSideBar.m */; }; 14 | 24DEEB7D193B7A42005D5796 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 24DEEB7C193B7A42005D5796 /* Foundation.framework */; }; 15 | 24DEEB7F193B7A42005D5796 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 24DEEB7E193B7A42005D5796 /* CoreGraphics.framework */; }; 16 | 24DEEB81193B7A42005D5796 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 24DEEB80193B7A42005D5796 /* UIKit.framework */; }; 17 | 24DEEB87193B7A42005D5796 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 24DEEB85193B7A42005D5796 /* InfoPlist.strings */; }; 18 | 24DEEB89193B7A42005D5796 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 24DEEB88193B7A42005D5796 /* main.m */; }; 19 | 24DEEB8D193B7A42005D5796 /* CDRAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 24DEEB8C193B7A42005D5796 /* CDRAppDelegate.m */; }; 20 | 24DEEB90193B7A42005D5796 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 24DEEB8E193B7A42005D5796 /* Main.storyboard */; }; 21 | 24DEEB93193B7A42005D5796 /* CDRViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 24DEEB92193B7A42005D5796 /* CDRViewController.m */; }; 22 | 24DEEB95193B7A42005D5796 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 24DEEB94193B7A42005D5796 /* Images.xcassets */; }; 23 | 24DEEB9C193B7A42005D5796 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 24DEEB9B193B7A42005D5796 /* XCTest.framework */; }; 24 | 24DEEB9D193B7A42005D5796 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 24DEEB7C193B7A42005D5796 /* Foundation.framework */; }; 25 | 24DEEB9E193B7A42005D5796 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 24DEEB80193B7A42005D5796 /* UIKit.framework */; }; 26 | 24DEEBA6193B7A42005D5796 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 24DEEBA4193B7A42005D5796 /* InfoPlist.strings */; }; 27 | 24DEEBA8193B7A42005D5796 /* CDRTranslucentSideBarTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 24DEEBA7193B7A42005D5796 /* CDRTranslucentSideBarTests.m */; }; 28 | /* End PBXBuildFile section */ 29 | 30 | /* Begin PBXContainerItemProxy section */ 31 | 24DEEB9F193B7A42005D5796 /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = 24DEEB71193B7A41005D5796 /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = 24DEEB78193B7A42005D5796; 36 | remoteInfo = CDRTranslucentSideBar; 37 | }; 38 | /* End PBXContainerItemProxy section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 2435927D1951EE3800F93A0D /* burger.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = burger.png; sourceTree = ""; }; 42 | 2435927E1951EE3800F93A0D /* burger@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "burger@2x.png"; sourceTree = ""; }; 43 | 24A1689F1952CFBB003356EB /* background1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = background1.jpg; sourceTree = ""; }; 44 | 24D92F68194F37A8003EF820 /* CDRTranslucentSideBar.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CDRTranslucentSideBar.h; sourceTree = ""; }; 45 | 24D92F69194F37A8003EF820 /* CDRTranslucentSideBar.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CDRTranslucentSideBar.m; sourceTree = ""; }; 46 | 24DEEB79193B7A42005D5796 /* CDRTranslucentSideBar.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CDRTranslucentSideBar.app; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 24DEEB7C193B7A42005D5796 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 48 | 24DEEB7E193B7A42005D5796 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 49 | 24DEEB80193B7A42005D5796 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 50 | 24DEEB84193B7A42005D5796 /* CDRTranslucentSideBar-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "CDRTranslucentSideBar-Info.plist"; sourceTree = ""; }; 51 | 24DEEB86193B7A42005D5796 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 52 | 24DEEB88193B7A42005D5796 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 53 | 24DEEB8A193B7A42005D5796 /* CDRTranslucentSideBar-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CDRTranslucentSideBar-Prefix.pch"; sourceTree = ""; }; 54 | 24DEEB8B193B7A42005D5796 /* CDRAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CDRAppDelegate.h; sourceTree = ""; }; 55 | 24DEEB8C193B7A42005D5796 /* CDRAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CDRAppDelegate.m; sourceTree = ""; }; 56 | 24DEEB8F193B7A42005D5796 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 57 | 24DEEB91193B7A42005D5796 /* CDRViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CDRViewController.h; sourceTree = ""; }; 58 | 24DEEB92193B7A42005D5796 /* CDRViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CDRViewController.m; sourceTree = ""; }; 59 | 24DEEB94193B7A42005D5796 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 60 | 24DEEB9A193B7A42005D5796 /* CDRTranslucentSideBarTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CDRTranslucentSideBarTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 61 | 24DEEB9B193B7A42005D5796 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 62 | 24DEEBA3193B7A42005D5796 /* CDRTranslucentSideBarTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "CDRTranslucentSideBarTests-Info.plist"; sourceTree = ""; }; 63 | 24DEEBA5193B7A42005D5796 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 64 | 24DEEBA7193B7A42005D5796 /* CDRTranslucentSideBarTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CDRTranslucentSideBarTests.m; sourceTree = ""; }; 65 | /* End PBXFileReference section */ 66 | 67 | /* Begin PBXFrameworksBuildPhase section */ 68 | 24DEEB76193B7A42005D5796 /* Frameworks */ = { 69 | isa = PBXFrameworksBuildPhase; 70 | buildActionMask = 2147483647; 71 | files = ( 72 | 24DEEB7F193B7A42005D5796 /* CoreGraphics.framework in Frameworks */, 73 | 24DEEB81193B7A42005D5796 /* UIKit.framework in Frameworks */, 74 | 24DEEB7D193B7A42005D5796 /* Foundation.framework in Frameworks */, 75 | ); 76 | runOnlyForDeploymentPostprocessing = 0; 77 | }; 78 | 24DEEB97193B7A42005D5796 /* Frameworks */ = { 79 | isa = PBXFrameworksBuildPhase; 80 | buildActionMask = 2147483647; 81 | files = ( 82 | 24DEEB9C193B7A42005D5796 /* XCTest.framework in Frameworks */, 83 | 24DEEB9E193B7A42005D5796 /* UIKit.framework in Frameworks */, 84 | 24DEEB9D193B7A42005D5796 /* Foundation.framework in Frameworks */, 85 | ); 86 | runOnlyForDeploymentPostprocessing = 0; 87 | }; 88 | /* End PBXFrameworksBuildPhase section */ 89 | 90 | /* Begin PBXGroup section */ 91 | 2435927C1951EE3800F93A0D /* Resources */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | 24A1689F1952CFBB003356EB /* background1.jpg */, 95 | 2435927D1951EE3800F93A0D /* burger.png */, 96 | 2435927E1951EE3800F93A0D /* burger@2x.png */, 97 | ); 98 | path = Resources; 99 | sourceTree = ""; 100 | }; 101 | 24D92F67194F374A003EF820 /* CDRTranslucentSideBar */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | 24D92F68194F37A8003EF820 /* CDRTranslucentSideBar.h */, 105 | 24D92F69194F37A8003EF820 /* CDRTranslucentSideBar.m */, 106 | ); 107 | path = CDRTranslucentSideBar; 108 | sourceTree = ""; 109 | }; 110 | 24DEEB70193B7A41005D5796 = { 111 | isa = PBXGroup; 112 | children = ( 113 | 24DEEB82193B7A42005D5796 /* CDRTranslucentSideBar */, 114 | 24DEEBA1193B7A42005D5796 /* CDRTranslucentSideBarTests */, 115 | 24DEEB7B193B7A42005D5796 /* Frameworks */, 116 | 24DEEB7A193B7A42005D5796 /* Products */, 117 | ); 118 | sourceTree = ""; 119 | }; 120 | 24DEEB7A193B7A42005D5796 /* Products */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | 24DEEB79193B7A42005D5796 /* CDRTranslucentSideBar.app */, 124 | 24DEEB9A193B7A42005D5796 /* CDRTranslucentSideBarTests.xctest */, 125 | ); 126 | name = Products; 127 | sourceTree = ""; 128 | }; 129 | 24DEEB7B193B7A42005D5796 /* Frameworks */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | 24DEEB7C193B7A42005D5796 /* Foundation.framework */, 133 | 24DEEB7E193B7A42005D5796 /* CoreGraphics.framework */, 134 | 24DEEB80193B7A42005D5796 /* UIKit.framework */, 135 | 24DEEB9B193B7A42005D5796 /* XCTest.framework */, 136 | ); 137 | name = Frameworks; 138 | sourceTree = ""; 139 | }; 140 | 24DEEB82193B7A42005D5796 /* CDRTranslucentSideBar */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | 2435927C1951EE3800F93A0D /* Resources */, 144 | 24D92F67194F374A003EF820 /* CDRTranslucentSideBar */, 145 | 24DEEB8B193B7A42005D5796 /* CDRAppDelegate.h */, 146 | 24DEEB8C193B7A42005D5796 /* CDRAppDelegate.m */, 147 | 24DEEB8E193B7A42005D5796 /* Main.storyboard */, 148 | 24DEEB91193B7A42005D5796 /* CDRViewController.h */, 149 | 24DEEB92193B7A42005D5796 /* CDRViewController.m */, 150 | 24DEEB94193B7A42005D5796 /* Images.xcassets */, 151 | 24DEEB83193B7A42005D5796 /* Supporting Files */, 152 | ); 153 | path = CDRTranslucentSideBar; 154 | sourceTree = ""; 155 | }; 156 | 24DEEB83193B7A42005D5796 /* Supporting Files */ = { 157 | isa = PBXGroup; 158 | children = ( 159 | 24DEEB84193B7A42005D5796 /* CDRTranslucentSideBar-Info.plist */, 160 | 24DEEB85193B7A42005D5796 /* InfoPlist.strings */, 161 | 24DEEB88193B7A42005D5796 /* main.m */, 162 | 24DEEB8A193B7A42005D5796 /* CDRTranslucentSideBar-Prefix.pch */, 163 | ); 164 | name = "Supporting Files"; 165 | sourceTree = ""; 166 | }; 167 | 24DEEBA1193B7A42005D5796 /* CDRTranslucentSideBarTests */ = { 168 | isa = PBXGroup; 169 | children = ( 170 | 24DEEBA7193B7A42005D5796 /* CDRTranslucentSideBarTests.m */, 171 | 24DEEBA2193B7A42005D5796 /* Supporting Files */, 172 | ); 173 | path = CDRTranslucentSideBarTests; 174 | sourceTree = ""; 175 | }; 176 | 24DEEBA2193B7A42005D5796 /* Supporting Files */ = { 177 | isa = PBXGroup; 178 | children = ( 179 | 24DEEBA3193B7A42005D5796 /* CDRTranslucentSideBarTests-Info.plist */, 180 | 24DEEBA4193B7A42005D5796 /* InfoPlist.strings */, 181 | ); 182 | name = "Supporting Files"; 183 | sourceTree = ""; 184 | }; 185 | /* End PBXGroup section */ 186 | 187 | /* Begin PBXNativeTarget section */ 188 | 24DEEB78193B7A42005D5796 /* CDRTranslucentSideBar */ = { 189 | isa = PBXNativeTarget; 190 | buildConfigurationList = 24DEEBAB193B7A42005D5796 /* Build configuration list for PBXNativeTarget "CDRTranslucentSideBar" */; 191 | buildPhases = ( 192 | 24DEEB75193B7A42005D5796 /* Sources */, 193 | 24DEEB76193B7A42005D5796 /* Frameworks */, 194 | 24DEEB77193B7A42005D5796 /* Resources */, 195 | ); 196 | buildRules = ( 197 | ); 198 | dependencies = ( 199 | ); 200 | name = CDRTranslucentSideBar; 201 | productName = CDRTranslucentSideBar; 202 | productReference = 24DEEB79193B7A42005D5796 /* CDRTranslucentSideBar.app */; 203 | productType = "com.apple.product-type.application"; 204 | }; 205 | 24DEEB99193B7A42005D5796 /* CDRTranslucentSideBarTests */ = { 206 | isa = PBXNativeTarget; 207 | buildConfigurationList = 24DEEBAE193B7A42005D5796 /* Build configuration list for PBXNativeTarget "CDRTranslucentSideBarTests" */; 208 | buildPhases = ( 209 | 24DEEB96193B7A42005D5796 /* Sources */, 210 | 24DEEB97193B7A42005D5796 /* Frameworks */, 211 | 24DEEB98193B7A42005D5796 /* Resources */, 212 | ); 213 | buildRules = ( 214 | ); 215 | dependencies = ( 216 | 24DEEBA0193B7A42005D5796 /* PBXTargetDependency */, 217 | ); 218 | name = CDRTranslucentSideBarTests; 219 | productName = CDRTranslucentSideBarTests; 220 | productReference = 24DEEB9A193B7A42005D5796 /* CDRTranslucentSideBarTests.xctest */; 221 | productType = "com.apple.product-type.bundle.unit-test"; 222 | }; 223 | /* End PBXNativeTarget section */ 224 | 225 | /* Begin PBXProject section */ 226 | 24DEEB71193B7A41005D5796 /* Project object */ = { 227 | isa = PBXProject; 228 | attributes = { 229 | CLASSPREFIX = CDR; 230 | LastUpgradeCheck = 0510; 231 | ORGANIZATIONNAME = nscallop; 232 | TargetAttributes = { 233 | 24DEEB99193B7A42005D5796 = { 234 | TestTargetID = 24DEEB78193B7A42005D5796; 235 | }; 236 | }; 237 | }; 238 | buildConfigurationList = 24DEEB74193B7A41005D5796 /* Build configuration list for PBXProject "CDRTranslucentSideBar" */; 239 | compatibilityVersion = "Xcode 3.2"; 240 | developmentRegion = English; 241 | hasScannedForEncodings = 0; 242 | knownRegions = ( 243 | en, 244 | Base, 245 | ); 246 | mainGroup = 24DEEB70193B7A41005D5796; 247 | productRefGroup = 24DEEB7A193B7A42005D5796 /* Products */; 248 | projectDirPath = ""; 249 | projectRoot = ""; 250 | targets = ( 251 | 24DEEB78193B7A42005D5796 /* CDRTranslucentSideBar */, 252 | 24DEEB99193B7A42005D5796 /* CDRTranslucentSideBarTests */, 253 | ); 254 | }; 255 | /* End PBXProject section */ 256 | 257 | /* Begin PBXResourcesBuildPhase section */ 258 | 24DEEB77193B7A42005D5796 /* Resources */ = { 259 | isa = PBXResourcesBuildPhase; 260 | buildActionMask = 2147483647; 261 | files = ( 262 | 2435927F1951EE3800F93A0D /* burger.png in Resources */, 263 | 24A168A01952CFBB003356EB /* background1.jpg in Resources */, 264 | 243592801951EE3800F93A0D /* burger@2x.png in Resources */, 265 | 24DEEB95193B7A42005D5796 /* Images.xcassets in Resources */, 266 | 24DEEB87193B7A42005D5796 /* InfoPlist.strings in Resources */, 267 | 24DEEB90193B7A42005D5796 /* Main.storyboard in Resources */, 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | }; 271 | 24DEEB98193B7A42005D5796 /* Resources */ = { 272 | isa = PBXResourcesBuildPhase; 273 | buildActionMask = 2147483647; 274 | files = ( 275 | 24DEEBA6193B7A42005D5796 /* InfoPlist.strings in Resources */, 276 | ); 277 | runOnlyForDeploymentPostprocessing = 0; 278 | }; 279 | /* End PBXResourcesBuildPhase section */ 280 | 281 | /* Begin PBXSourcesBuildPhase section */ 282 | 24DEEB75193B7A42005D5796 /* Sources */ = { 283 | isa = PBXSourcesBuildPhase; 284 | buildActionMask = 2147483647; 285 | files = ( 286 | 24DEEB8D193B7A42005D5796 /* CDRAppDelegate.m in Sources */, 287 | 24D92F6A194F37A8003EF820 /* CDRTranslucentSideBar.m in Sources */, 288 | 24DEEB89193B7A42005D5796 /* main.m in Sources */, 289 | 24DEEB93193B7A42005D5796 /* CDRViewController.m in Sources */, 290 | ); 291 | runOnlyForDeploymentPostprocessing = 0; 292 | }; 293 | 24DEEB96193B7A42005D5796 /* Sources */ = { 294 | isa = PBXSourcesBuildPhase; 295 | buildActionMask = 2147483647; 296 | files = ( 297 | 24DEEBA8193B7A42005D5796 /* CDRTranslucentSideBarTests.m in Sources */, 298 | ); 299 | runOnlyForDeploymentPostprocessing = 0; 300 | }; 301 | /* End PBXSourcesBuildPhase section */ 302 | 303 | /* Begin PBXTargetDependency section */ 304 | 24DEEBA0193B7A42005D5796 /* PBXTargetDependency */ = { 305 | isa = PBXTargetDependency; 306 | target = 24DEEB78193B7A42005D5796 /* CDRTranslucentSideBar */; 307 | targetProxy = 24DEEB9F193B7A42005D5796 /* PBXContainerItemProxy */; 308 | }; 309 | /* End PBXTargetDependency section */ 310 | 311 | /* Begin PBXVariantGroup section */ 312 | 24DEEB85193B7A42005D5796 /* InfoPlist.strings */ = { 313 | isa = PBXVariantGroup; 314 | children = ( 315 | 24DEEB86193B7A42005D5796 /* en */, 316 | ); 317 | name = InfoPlist.strings; 318 | sourceTree = ""; 319 | }; 320 | 24DEEB8E193B7A42005D5796 /* Main.storyboard */ = { 321 | isa = PBXVariantGroup; 322 | children = ( 323 | 24DEEB8F193B7A42005D5796 /* Base */, 324 | ); 325 | name = Main.storyboard; 326 | sourceTree = ""; 327 | }; 328 | 24DEEBA4193B7A42005D5796 /* InfoPlist.strings */ = { 329 | isa = PBXVariantGroup; 330 | children = ( 331 | 24DEEBA5193B7A42005D5796 /* en */, 332 | ); 333 | name = InfoPlist.strings; 334 | sourceTree = ""; 335 | }; 336 | /* End PBXVariantGroup section */ 337 | 338 | /* Begin XCBuildConfiguration section */ 339 | 24DEEBA9193B7A42005D5796 /* Debug */ = { 340 | isa = XCBuildConfiguration; 341 | buildSettings = { 342 | ALWAYS_SEARCH_USER_PATHS = NO; 343 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 344 | CLANG_CXX_LIBRARY = "libc++"; 345 | CLANG_ENABLE_MODULES = YES; 346 | CLANG_ENABLE_OBJC_ARC = YES; 347 | CLANG_WARN_BOOL_CONVERSION = YES; 348 | CLANG_WARN_CONSTANT_CONVERSION = YES; 349 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 350 | CLANG_WARN_EMPTY_BODY = YES; 351 | CLANG_WARN_ENUM_CONVERSION = YES; 352 | CLANG_WARN_INT_CONVERSION = YES; 353 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 354 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 355 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 356 | COPY_PHASE_STRIP = NO; 357 | GCC_C_LANGUAGE_STANDARD = gnu99; 358 | GCC_DYNAMIC_NO_PIC = NO; 359 | GCC_OPTIMIZATION_LEVEL = 0; 360 | GCC_PREPROCESSOR_DEFINITIONS = ( 361 | "DEBUG=1", 362 | "$(inherited)", 363 | ); 364 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 365 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 366 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 367 | GCC_WARN_UNDECLARED_SELECTOR = YES; 368 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 369 | GCC_WARN_UNUSED_FUNCTION = YES; 370 | GCC_WARN_UNUSED_VARIABLE = YES; 371 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 372 | ONLY_ACTIVE_ARCH = YES; 373 | SDKROOT = iphoneos; 374 | }; 375 | name = Debug; 376 | }; 377 | 24DEEBAA193B7A42005D5796 /* Release */ = { 378 | isa = XCBuildConfiguration; 379 | buildSettings = { 380 | ALWAYS_SEARCH_USER_PATHS = NO; 381 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 382 | CLANG_CXX_LIBRARY = "libc++"; 383 | CLANG_ENABLE_MODULES = YES; 384 | CLANG_ENABLE_OBJC_ARC = YES; 385 | CLANG_WARN_BOOL_CONVERSION = YES; 386 | CLANG_WARN_CONSTANT_CONVERSION = YES; 387 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 388 | CLANG_WARN_EMPTY_BODY = YES; 389 | CLANG_WARN_ENUM_CONVERSION = YES; 390 | CLANG_WARN_INT_CONVERSION = YES; 391 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 392 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 393 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 394 | COPY_PHASE_STRIP = YES; 395 | ENABLE_NS_ASSERTIONS = NO; 396 | GCC_C_LANGUAGE_STANDARD = gnu99; 397 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 398 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 399 | GCC_WARN_UNDECLARED_SELECTOR = YES; 400 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 401 | GCC_WARN_UNUSED_FUNCTION = YES; 402 | GCC_WARN_UNUSED_VARIABLE = YES; 403 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 404 | SDKROOT = iphoneos; 405 | VALIDATE_PRODUCT = YES; 406 | }; 407 | name = Release; 408 | }; 409 | 24DEEBAC193B7A42005D5796 /* Debug */ = { 410 | isa = XCBuildConfiguration; 411 | buildSettings = { 412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 413 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 414 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 415 | GCC_PREFIX_HEADER = "CDRTranslucentSideBar/CDRTranslucentSideBar-Prefix.pch"; 416 | INFOPLIST_FILE = "CDRTranslucentSideBar/CDRTranslucentSideBar-Info.plist"; 417 | PRODUCT_NAME = "$(TARGET_NAME)"; 418 | WRAPPER_EXTENSION = app; 419 | }; 420 | name = Debug; 421 | }; 422 | 24DEEBAD193B7A42005D5796 /* Release */ = { 423 | isa = XCBuildConfiguration; 424 | buildSettings = { 425 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 426 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 427 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 428 | GCC_PREFIX_HEADER = "CDRTranslucentSideBar/CDRTranslucentSideBar-Prefix.pch"; 429 | INFOPLIST_FILE = "CDRTranslucentSideBar/CDRTranslucentSideBar-Info.plist"; 430 | PRODUCT_NAME = "$(TARGET_NAME)"; 431 | WRAPPER_EXTENSION = app; 432 | }; 433 | name = Release; 434 | }; 435 | 24DEEBAF193B7A42005D5796 /* Debug */ = { 436 | isa = XCBuildConfiguration; 437 | buildSettings = { 438 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/CDRTranslucentSideBar.app/CDRTranslucentSideBar"; 439 | FRAMEWORK_SEARCH_PATHS = ( 440 | "$(SDKROOT)/Developer/Library/Frameworks", 441 | "$(inherited)", 442 | "$(DEVELOPER_FRAMEWORKS_DIR)", 443 | ); 444 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 445 | GCC_PREFIX_HEADER = "CDRTranslucentSideBar/CDRTranslucentSideBar-Prefix.pch"; 446 | GCC_PREPROCESSOR_DEFINITIONS = ( 447 | "DEBUG=1", 448 | "$(inherited)", 449 | ); 450 | INFOPLIST_FILE = "CDRTranslucentSideBarTests/CDRTranslucentSideBarTests-Info.plist"; 451 | PRODUCT_NAME = "$(TARGET_NAME)"; 452 | TEST_HOST = "$(BUNDLE_LOADER)"; 453 | WRAPPER_EXTENSION = xctest; 454 | }; 455 | name = Debug; 456 | }; 457 | 24DEEBB0193B7A42005D5796 /* Release */ = { 458 | isa = XCBuildConfiguration; 459 | buildSettings = { 460 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/CDRTranslucentSideBar.app/CDRTranslucentSideBar"; 461 | FRAMEWORK_SEARCH_PATHS = ( 462 | "$(SDKROOT)/Developer/Library/Frameworks", 463 | "$(inherited)", 464 | "$(DEVELOPER_FRAMEWORKS_DIR)", 465 | ); 466 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 467 | GCC_PREFIX_HEADER = "CDRTranslucentSideBar/CDRTranslucentSideBar-Prefix.pch"; 468 | INFOPLIST_FILE = "CDRTranslucentSideBarTests/CDRTranslucentSideBarTests-Info.plist"; 469 | PRODUCT_NAME = "$(TARGET_NAME)"; 470 | TEST_HOST = "$(BUNDLE_LOADER)"; 471 | WRAPPER_EXTENSION = xctest; 472 | }; 473 | name = Release; 474 | }; 475 | /* End XCBuildConfiguration section */ 476 | 477 | /* Begin XCConfigurationList section */ 478 | 24DEEB74193B7A41005D5796 /* Build configuration list for PBXProject "CDRTranslucentSideBar" */ = { 479 | isa = XCConfigurationList; 480 | buildConfigurations = ( 481 | 24DEEBA9193B7A42005D5796 /* Debug */, 482 | 24DEEBAA193B7A42005D5796 /* Release */, 483 | ); 484 | defaultConfigurationIsVisible = 0; 485 | defaultConfigurationName = Release; 486 | }; 487 | 24DEEBAB193B7A42005D5796 /* Build configuration list for PBXNativeTarget "CDRTranslucentSideBar" */ = { 488 | isa = XCConfigurationList; 489 | buildConfigurations = ( 490 | 24DEEBAC193B7A42005D5796 /* Debug */, 491 | 24DEEBAD193B7A42005D5796 /* Release */, 492 | ); 493 | defaultConfigurationIsVisible = 0; 494 | defaultConfigurationName = Release; 495 | }; 496 | 24DEEBAE193B7A42005D5796 /* Build configuration list for PBXNativeTarget "CDRTranslucentSideBarTests" */ = { 497 | isa = XCConfigurationList; 498 | buildConfigurations = ( 499 | 24DEEBAF193B7A42005D5796 /* Debug */, 500 | 24DEEBB0193B7A42005D5796 /* Release */, 501 | ); 502 | defaultConfigurationIsVisible = 0; 503 | defaultConfigurationName = Release; 504 | }; 505 | /* End XCConfigurationList section */ 506 | }; 507 | rootObject = 24DEEB71193B7A41005D5796 /* Project object */; 508 | } 509 | --------------------------------------------------------------------------------