Latest 0.4.0
Homepage https://github.com/audrl1010/SlideMenuController
License MIT
Platforms ios 9.0
Authors

CI Status
Version
License
Platform

alt text

Requirements

iOS 9+

Installation

SlideMenuController is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'SlideMenuController'

Usage

Setup

class AppDelegate: UIResponder, UIApplicationDelegate {

  var window: UIWindow?

  func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    ...
    let slideMenuController = SlideMenuController(
      mainViewController: mainViewController,
      leftViewController: leftViewController,
      rightViewController: rightViewController
    )

    window?.rootViewController = slideMenuController
    return true
  }
}

QuickStart

....
  func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
    ...
    let navi = UINavigationController(rootViewController: selectedMenuViewController)
    self.slideMenuController?.setMain(viewController: navi)
  }
....

Properties

var animationDuration: TimeInterval // default: 0.45

var leftVisibleWidthPercentage: CGFloat // 0.0 ~ 1.0  default: 0.45
var rightVisibleWidthPercentage: CGFloat // 0.0 ~ 1.0 default: 0.45

var allowedRightSwipe: Bool // default: true
var allowedLeftSwipe: Bool // default: true

var minimumMovePercentage: CGFloat // 0.0 ~ 1.0  default: 0.15
var panningLimitedToTopViewController: Bool // default: true

var mainNavigationBarLeftToggleButtonIcon: UIImage?
var mainNavigationBarRightToggleButtonIcon: UIImage?

Methods

func setRight(viewController newRightViewController: UIViewController?)
func setLeft(viewController newLeftViewController: UIViewController?)
func setMain(viewController newMainViewController: UIViewController?)

func showMain()
func showRight()
func showLeft()

func toggleLeft()
func toggleRight()

Author

🇰🇷Myung gi son, [email protected]

License

SlideMenuController is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SlideMenuController",
    "version": "0.4.0",
    "summary": "iOS Slide Menu Controller.",
    "description": "iOS Slide Menu Controller. It is written in pure swift.",
    "homepage": "https://github.com/audrl1010/SlideMenuController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "audrl1010": "[email protected]"
    },
    "source": {
        "git": "https://github.com/audrl1010/SlideMenuController.git",
        "tag": "0.4.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "SlideMenuController/Classes/**/*",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This