iOS Slide Menu Controller. It is written in pure swift.

Overview

SlideMenuController

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.

You might also like...
A paging view controller with a highly customizable menu ✨
A paging view controller with a highly customizable menu ✨

Getting Started | Customization | Installation Features Parchment lets you page between view controllers while showing any type of generic indicator t

EasyMenu - SwiftUI Menu but not only button (similar to the native Menu)
EasyMenu - SwiftUI Menu but not only button (similar to the native Menu)

EasyMenu SwiftUI Menu but not only button (similar to the native Menu) You can c

Hamburger Menu Button -  A hamburger menu button with full customization
Hamburger Menu Button - A hamburger menu button with full customization

Hamburger Menu Button A hamburger menu button with full customization. Inspired by VinhLe's idea on the Dribble How to use it You can config the looks

A fully customizable container view controller to display a set of ViewControllers in a horizontal scroll view. Written in Swift.
A fully customizable container view controller to display a set of ViewControllers in a horizontal scroll view. Written in Swift.

DTPagerController This is a control for iOS written in Swift. DTPagerController is simple to use and easy to customize. Screenshots Default segmented

A simple side menu for iOS written in Swift.
A simple side menu for iOS written in Swift.

ENSwiftSideMenu A lightweight flyover side menu component for iOS with the UIDynamic's bouncing animation, UIGestures and UIBlurEffect. Allows you to

iOS Interactive Side Menu written in Swift.
iOS Interactive Side Menu written in Swift.

Interactive Side Menu A customizable, interactive, auto expanding and collapsing side menu for iOS written in Swift. Here are some of the ways Interac

ExpandingMenu is menu button for iOS written in Swift.
ExpandingMenu is menu button for iOS written in Swift.

ExpandingMenu ExpandingMenu is written in Swift. Requirements iOS 8.0+ Xcode 10.0+ Swift 3.x+ Installation CocoaPods You can install CocoaPods with th

Beautiful iOS side menu library with parallax effect. Written in Swift
Beautiful iOS side menu library with parallax effect. Written in Swift

AKSideMenu AKSideMenu is a double side menu library with parallax effect. Example Project See the contained examples to get a sample of how AKSideMenu

The elegant yet functional dropdown menu, written in Swift, appears underneath the navigation bar to display a list of defined items when a user clicks on the navigation title.
The elegant yet functional dropdown menu, written in Swift, appears underneath the navigation bar to display a list of defined items when a user clicks on the navigation title.

Introduction The elegant yet functional dropdown menu, written in Swift, appears underneath the navigation bar to display a list of defined items when

Comments
  • exception in mainNavigationBarRightToggleButtonIcon

    exception in mainNavigationBarRightToggleButtonIcon

    when i insert row slideMenuController.mainNavigationBarRightToggleButtonIcon = #imageLiteral(resourceName: "rightMenu")

    in appdelegate : and then :

    the first time , i click to Icon right bar button. My right menu controller doesn't show . it is showing left menu controller. But the second time not throw this exception

    please help me

    thank

    opened by haconglinhmiyatsu 0
  • This is very useful library. but when setMain(viewController:), it do…

    This is very useful library. but when setMain(viewController:), it do…

    This is very useful library. but when setMain(viewController:), it doesn't remove the tapGesture, so after a new Main View controller is shown, user is unable to tap on the main view. Therefore, in animateMainViewController, we need to remove Tap Gesture. or in setMain method.

    opened by oslover 4
  • tableview not working

    tableview not working

    I just added a tableView to mainViewController and tableView did not work anymore.

    let navigationController = UINavigationController(rootViewController: MessagesViewController())
    
    let slideMenuController = SlideMenuController(
           mainViewController: navigationController,
           leftViewController: LeftViewController()
    )
    slideMenuController.allowedRightSwipe = false
    slideMenuController.mainNavigationBarLeftToggleButtonIcon = UIImage(named: "menuIcon")
    
    window = UIWindow(frame: UIScreen.main.bounds)
    window?.makeKeyAndVisible()
    window?.rootViewController = slideMenuController
    

    i can not use repo now!

    opened by zezeron 10
Releases(0.4.0)
Owner
Myung gi son
iOS developer
Myung gi son
iOS Slide Menu Controller. It is written in pure swift.

SlideMenuController Requirements iOS 9+ Installation SlideMenuController is available through CocoaPods. To install it, simply add the following line

Myung gi son 40 Jan 16, 2022
iOS Slide Menu View based on Google+, iQON, Feedly, Ameba iOS app. It is written in pure swift.

SlideMenuControllerSwift iOS Slide View based on iQON, Feedly, Google+, Ameba iPhone app. Installation CocoaPods pod 'SlideMenuControllerSwift' Carth

Yuji Hato 3.3k Dec 29, 2022
Simple side/slide menu control for iOS, no code necessary! Lots of customization. Add it to your project in 5 minutes or less.

▤ SideMenu If you like SideMenu, give it a ★ at the top right of this page. SideMenu needs your help! If you're a skilled iOS developer and want to he

Jon Kent 5.4k Dec 29, 2022
This is a spring slide menu for iOS apps - 一个弹性侧滑菜单

LLSlideMenu This is a spring slide menu for iOS apps 一个弹性侧滑菜单 弹性动画原理借鉴该项目中阻尼函数实现 Preview 预览 Installation 安装 pod 1.pod 'LLSlideMenu', '~> 1.0.6'

Li Lei 590 Dec 7, 2022
Slide Menu (Drawer) in Swift

AKSwiftSlideMenu Slide Menu (Drawer) in Swift 5.0 Why to use a library everytime? Let's create our own Slide Menu in Swift 5.0 I have uploaded a video

Ashish Kakkad 281 Jan 5, 2023
SwiftySideMenu is a lightweight and easy to use side menu controller to add left menu and center view controllers with scale animation based on Pop framework.

SwiftySideMenu SwiftySideMenu is a lightweight, fully customizable, and easy to use controller to add left menu and center view controllers with scale

Hossam Ghareeb 84 Feb 4, 2022
A side menu controller written in Swift for iOS

Description SideMenuController is a custom container view controller written in Swift which will display the main content within a center panel and th

Teo 1.2k Dec 29, 2022
Menu controller with expandable item groups, custom position and appearance animation written with Swift. Similar to ActionSheet style of UIAlertController.

Easy to implement controller with expanding menu items. Design is very similar to iOS native ActionSheet presentation style of a UIAlertController. As

Anatoliy Voropay 22 Dec 27, 2022
Swift-sidebar-menu-example - Create amazing sidebar menu with animation using swift

 SWIFT SIDEBAR MENU EXAMPLE In this project I create a awesome side bar menu fo

Paolo Prodossimo Lopes 4 Jul 25, 2022
A paging menu controller built from other view controllers placed inside a scroll view (like Spotify, Windows Phone, Instagram)

Unfortunately, life gets in the way sometimes and I won't be able to maintain this library any longer and upgrade this library to where it needs to be

null 5.2k Dec 31, 2022