Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
frboulais committed Aug 6, 2020
1 parent feaabda commit 2785538
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ button.configuraton = .init(color: .orange, font: .cookie)

### `BMCManager`

`BMCManager` is a singleton that is used to configure both username and presenting view controller. The username is the one you've chosen on https://www.buymeacoffee.com, and the presenting view controller is the one that will be used to present donation flow when user tap on the `BMCButton`.
It can be configured in the `viewDidLoad` function:

```swift
override func viewDidLoad() {
super.viewDidLoad()

BMCManager.shared.username = "appcraftstudio"
BMCManager.shared.presentingViewController = self
}
```

## Installation

### [CocoaPods](https://guides.cocoapods.org/using/using-cocoapods.html)
Expand Down

0 comments on commit 2785538

Please sign in to comment.