GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bigraf/SlideMenuControllerSwift: iOS Slide Menu View based on Google+, iQON, Feedly, Ameba iOS app. It is written in pure swift.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

41 Commits
41 Commits

Folders and files

NameName
Last commit message
Last commit date
Screenshots
Screenshots
 
 
SlideMenuControllerSwift.xcodeproj
SlideMenuControllerSwift.xcodeproj
 
 
SlideMenuControllerSwift
SlideMenuControllerSwift
 
 
SlideMenuControllerSwiftTests
SlideMenuControllerSwiftTests
 
 
Source
Source
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

SlideMenuControllerSwift

Platform Language License Issues

iOS Slide View based on iQON, Feedly, Google+, Ameba iPhone app.

sample

##Installation

####CocoaPods comming soon...

####Manually Add the SlideMenuController.swift file to your project.

##Usage

###Setup

In your app delegate:

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

    // create viewController code...
        
    let slideMenuController = SlideMenuController(mainViewController: mainViewController, leftMenuViewController: leftViewController, rightMenuViewController: rightViewController)
    self.window?.rootViewController = slideMenuController
    self.window?.makeKeyAndVisible()    

    return true
}

If you want to use the custom option, please change the SlideMenuOption class.

class SlideMenuOption {
    
    let leftViewOverlapWidth: CGFloat = 60.0
    let leftBezelWidth: CGFloat = 16.0
    let contentViewScale: CGFloat = 0.96
    let contentViewOpacity: CGFloat = 0.5
    let shadowOpacity: CGFloat = 0.0
    let shadowRadius: CGFloat = 0.0
    let shadowOffset: CGSize = CGSizeMake(0,0)
    let panFromBezel: Bool = true
    let animationDuration: CGFloat = 0.4
    let rightViewOverlapWidth: CGFloat = 60.0
    let rightBezelWidth: CGFloat = 16.0
    let rightPanFromBezel: Bool = true
    let hideStatusBar: Bool = true
    let pointOfNoReturnWidth: CGFloat = 44.0
    
    init() {
        
    }
}

###You can access from UIViewController

self.slideMenuController()?

or

if let slideMenuController = self.slideMenuController() {
    // some code
}

add navigationBarButton

viewController.addLeftBarButtonWithImage(UIImage(named: "hoge")!)
viewController.addRightBarButtonWithImage(UIImage(named: "fuga")!)

open and close

// Open
self.slideMenuController()?.openLeft()
self.slideMenuController()?.openRight()

// close
self.slideMenuController()?.closeLeft()
self.slideMenuController()?.closeRight()

Requirements

Requires iOS 7.0 and ARC.

Features

  • Highly customizable
  • Complete example

Contributing

Forks, patches and other feedback are welcome.

Creator

Yuji Hato Blog

License

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

About

iOS Slide Menu View based on Google+, iQON, Feedly, Ameba iOS app. It is written in pure swift.

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.