Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
monoqlo committed Feb 21, 2016
1 parent 6c99483 commit 9ad5dcd
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,49 @@ let item5 = ExpandingMenuItem(size: menuButtonSize, title: "Sleep", image: UIIma
menuButton.addMenuItems([item1, item2, item3, item4, item5])
```

## Customize

### ExpandingMenuButton

```swift
// Bottom dim view
menuButton.bottomViewColor = UIColor.redColor()
menuButton.bottomViewAlpha = 0.2

// Whether the tapped action fires when title are tapped
menuButton.titleTappedActionEnabled = false

// Menu item direction
menuButton.expandingDirection = .Bottom
menuButton.menuTitleDirection = .Right

// The action when the menu appears/disappears
menuButton.willPresentMenuItems = { (menu) -> Void in
print("MenuItems will present.")
}

menuButton.didPresentMenuItems = { (menu) -> Void in
print("MenuItems will present.")
}

menuButton.willDismissMenuItems = { (menu) -> Void in
print("MenuItems dismissed.")
}

menuButton.didDismissMenuItems = { (menu) -> Void in
print("MenuItems will present.")
}
```


### ExpandingMenuItem

```swift
// Title
item.title = "text"
item.titleColor = UIColor.redColor()
```

## Author

monoqlo, [email protected]
Expand Down

0 comments on commit 9ad5dcd

Please sign in to comment.