Latest 1.0.1
Homepage https://github.com/lminhtm/LMSideBarController
License MIT
Platforms ios 8.0, requires ARC
Authors

LMSideBarController is a simple side bar controller inspired by Tappy and Simon Hoang.

LMSideBarController

               

LMSideBarController

Features

  • Side bar controller with blur+transform3D effect.
  • Support both left and right bar controller with different side bar styles.
  • Pan Gesture available.
  • Expandable structure.

Requirements

  • Xcode 8 or higher
  • iOS 8.0 or higher
  • ARC

Installation

From CocoaPods

pod 'LMSideBarController'

Manually

  • Drag the LMSideBarController folder into your project.
  • Add #include "LMSideBarController.h" to the top of classes that will use it.

Usage

You can subclass LMSideBarController and setup it in awakeFromNib method.

// Init side bar styles
LMSideBarDepthStyle *sideBarDepthStyle = [LMSideBarDepthStyle new];
sideBarDepthStyle.menuWidth = 220;

// Init view controllers
LMLeftMenuViewController *leftMenuViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"leftMenuViewController"];
LMRightMenuViewController *rightMenuViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"rightMenuViewController"];
LMMainNavigationController *navigationController = [self.storyboard instantiateViewControllerWithIdentifier:@"mainNavigationController"];

// Setup side bar controller
[self setPanGestureEnabled:YES];
[self setDelegate:self];
[self setMenuViewController:leftMenuViewController forDirection:LMSideBarControllerDirectionLeft];
[self setMenuViewController:rightMenuViewController forDirection:LMSideBarControllerDirectionRight];
[self setSideBarStyle:sideBarDepthStyle forDirection:LMSideBarControllerDirectionLeft];
[self setSideBarStyle:sideBarDepthStyle forDirection:LMSideBarControllerDirectionRight];
[self setContentViewController:navigationController];

You can present it manually:

[self.sideBarController showMenuViewControllerInDirection:LMSideBarControllerDirectionLeft];

or hide it:

[self.sideBarController hideMenuViewController:YES];

See sample Xcode project in /LMSideBarControllerDemo

License

LMSideBarController is licensed under the terms of the MIT License.

Contact

Minh Luong Nguyen

Donations

paypal

Latest podspec

{
    "name": "LMSideBarController",
    "version": "1.0.1",
    "summary": "LMSideBarController is a simple side bar controller inspired by Tappy",
    "homepage": "https://github.com/lminhtm/LMSideBarController",
    "license": "MIT",
    "authors": {
        "LMinh": "[email protected]"
    },
    "source": {
        "git": "https://github.com/lminhtm/LMSideBarController.git",
        "tag": "1.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "LMSideBarController/**/*.{h,m}"
}

Pin It on Pinterest

Share This