8000 GitHub - carozhu/Hamburger-Menu-Button: Hamburger Menu Button
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

carozhu/Hamburger-Menu-Button

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hamburger Menu Button

A hamburger menu button with full customization. Inspired by VinhLe's idea on the Dribble

![Preview] (http://i.imgur.com/jeaLTWt.gif)

How to use it

You can config the looks of the button through Xcode Inspector

![Xcode Inspector] (http://i.imgur.com/vRn2Quu.gif)

Or you can make a button on your own by doing this:

  let firstButton = MenuButton(frame: CGRectMake(100, 100, 60, 60))
  firstButton.addTarget(self, action: "buttonClick:", forControlEvents: UIControlEvents.TouchUpInside)
  firstButton.lineWidth = 30
  firstButton.lineMargin = 12
  firstButton.lineCapRound = true
  firstButton.thickness = 6
  firstButton.slideLeftToRight = false
  firstButton.backgroundColor = UIColor.purpleColor()
  firstButton.cornerRadius = 10
  self.view.addSubview(firstButton)

License

MIT license. See the LICENSE file for details.

About

Hamburger Menu Button

Resources

License

Stars

Watchers

Forks

Releases

No releases published
30D0

Packages

No packages published

Languages

  • Swift 100.0%
0