Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenyneu committed Jun 5, 2015
1 parent bccbb60 commit c934dc6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
18 changes: 15 additions & 3 deletions Demo/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,23 @@ class ViewController: UIViewController {
view.dodo.style.bar.hideOnTap = hideOnTapSwitch.on
view.dodo.style.label.shadowColor = DodoColor.fromHexString("#00000050")

let buttonTintColor = DodoColor.fromHexString("#FFFFFF90")
view.dodo.style.leftButton.tintColor = buttonTintColor
view.dodo.style.rightButton.tintColor = buttonTintColor
// let buttonTintColor = DodoColor.fromHexString("#FFFFFF90")
// view.dodo.style.leftButton.tintColor = buttonTintColor
// view.dodo.style.rightButton.tintColor = buttonTintColor

view.dodo.style.label.color = UIColor.whiteColor()
view.dodo.style.label.font = UIFont.preferredFontForTextStyle(UIFontTextStyleBody)
view.dodo.style.bar.backgroundColor = DodoColor.fromHexString("#00000090")
view.dodo.style.bar.cornerRadius = 0
view.dodo.style.bar.marginToSuperview = CGSize(width: 0, height: 0)


addButtons()

view.dodo.style.leftButton.image = UIImage(named: "CloseIcon")
view.dodo.style.leftButton.onTap = { /* Button tapped */ }
view.dodo.style.leftButton.tintColor = DodoColor.fromHexString("#FFFFFF90")


view.dodo.show(message)
}
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,14 @@ view.dodo.hide()
view.dodo.style.label.color = UIColor.whiteColor()
view.dodo.style.label.font = UIFont.preferredFontForTextStyle(UIFontTextStyleBody)
view.dodo.style.bar.backgroundColor = DodoColor.fromHexString("#00000090")
view.dodo.style.bar.cornerRadius = 0
view.dodo.style.bar.marginToSuperview = CGSize(width: 0, height: 0)
```

### Add buttons or icons

```Swift
view.dodo.style.leftButton.image = UIImage(named: "CloseIcon")
view.dodo.style.leftButton.tintColor = DodoColor.fromHexString("#FFFFFF90")
view.dodo.style.leftButton.onTap = { /* Button tapped */ }
```

0 comments on commit c934dc6

Please sign in to comment.