Latest 0.1.7
License MIT
Platforms ios 9.0, requires ARC
Frameworks UIKit

The MenuSlider is a simple CocoaPod project made to easily implement a slider menu


In your Podfile insert this line on Pod list

pod 'MenuSlider', '~> 0.1.5'

And run pod install

Implement example for MenuSlider

import UIKit
import MenuSlider

class ViewController: UIViewController, SideMenuDelegate {

    // Implementing var menu, coming from SideMenuDelegate Protocol
    var menu: SideMenuViewController!

    @IBAction func openMenu(_ sender: Any) {
        // call the menu method expand(*controller*) to open
        menu.expand(onController: self)

    // Optionally function onMenuClose(), fired when user closes menu
    func onMenuClose() {
        print("Action on Close Menu")

    // Optionally function onMenuClose(), fired when user open menu
    func onMenuOpen() {
        print("Action on Open Menu")

    override func viewDidLoad() {

        // Creating a Menu Item with title string, with an action
        let menuItem1: SideMenuItem = SideMenuItemFactory.make(title: "Item Cell") {
            print("Action Cell")

        // Creating a Menu Item with title string, without an action
        let menuItem2 = SideMenuItemFactory.make(title: "Item cell 2") {}

        // Creating a Menu Header with title string
        let menuheader = SideMenuHeaderFactory.make(title: "Header")

        let footerLabel = UILabel()
        footerLabel.text = "Footer"
        footerLabel.textAlignment =
        footerLabel.autoresizingMask = [.flexibleHeight, .flexibleWidth]
        let footerView: UIView = UIView()
        footerLabel.frame = footerView.frame
        footerView.backgroundColor = UIColor.gray

        // Creating a Menu Footer with an UIView
        let menufooter = SideMenuFooterFactory.make(view: footerView)

        // Setting itens to the SideMenuViewController
        let menuBuild = SideMenu(menuItems: [menuItem1, menuItem2], header: menuheader, 
footer: menufooter)

        // Building the Menu SideMenuViewController =

        // Finally, setting self class for MenuController Delegate
        menu.delegate = self


This example above will generate you this:

Latest podspec

    "name": "MenuSlider",
    "platforms": {
        "ios": "9.0"
    "summary": "MenuSlider provides a cool and easy setup side menu.",
    "requires_arc": true,
    "version": "0.1.7",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Daniel Rodrigues da Silveira": "[email protected]"
    "homepage": "",
    "source": {
        "git": "",
        "tag": "0.1.7"
    "frameworks": "UIKit",
    "source_files": "MenuSlider/**/*.{swift}",
    "resources": "MenuSlider/**/*.{png,jpeg,jpg,storyboard,xib}",
    "pushed_with_swift_version": "3.0"

Pin It on Pinterest

Share This