https://github.com/toannt/Hamburger-Menu-Button
Hamburger Menu Button
https://github.com/toannt/Hamburger-Menu-Button
Last synced: 4 months ago
JSON representation
Hamburger Menu Button
- Host: GitHub
- URL: https://github.com/toannt/Hamburger-Menu-Button
- Owner: toannt
- License: mit
- Created: 2015-10-28T10:04:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-10-04T03:54:00.000Z (almost 6 years ago)
- Last Synced: 2024-11-01T00:32:34.290Z (9 months ago)
- Language: Swift
- Homepage:
- Size: 243 KB
- Stars: 113
- Watchers: 8
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hamburger Menu Button
A hamburger menu button with full customization. Inspired by [VinhLe's idea on the Dribble](https://dribbble.com/shots/1626236-Dribbble-Menu)
# How to use it
You can config the looks of the button through Xcode Inspector
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.