Skip to content

Commit

Permalink
Merge pull request #14 from revolter/hotfix/fix-demo
Browse files Browse the repository at this point in the history
Fix demo project not building with the latest Cheers version
onmyway133 authored Dec 1, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 46fb62f + 524d7cc commit 793e250
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Example/CheersDemo/CheersDemo/Sources/ViewController.swift
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ class ViewController: UIViewController {
super.viewDidLoad()
view.backgroundColor = UIColor.white

cheerView.config.particle = .confetti
cheerView.config.particle = .confetti(allowedShapes: Particle.ConfettiShape.all)
view.addSubview(cheerView)
}

4 changes: 2 additions & 2 deletions Example/CheersDemo/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Cheers (0.1.0)
- Cheers (2.0.0)

DEPENDENCIES:
- Cheers (from `../../`)
@@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: "../../"

SPEC CHECKSUMS:
Cheers: eb2a513bd7fbc89b9b34017b7456473402eeca16
Cheers: df4128f342df005e53ccbba971a0bdfb5d735f6d

PODFILE CHECKSUM: 5e6d52651a9c11cd39c5d53c6768b84685a3eb28

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ let cheerView = CheerView()
view.addSubview(cheerView)

// Configure
cheerView.config.particle = .confetti
cheerView.config.particle = .confetti(allowedShapes: Particle.ConfettiShape.all)

// Start
cheerView.start()
@@ -35,7 +35,7 @@ Configuration will be applied at the next `start`

```swift
// Use predefined confetti
cheerView.config.particle = .confetti
cheerView.config.particle = .confetti(allowedShapes: Particle.ConfettiShape.all)

// Use texts
let string = NSAttributedString(string: "❤️", attributes: [
@@ -52,7 +52,7 @@ cheerView.config.colors = [UIColor.red, UIColor.green]

// Customize cells
cheerView.config.customize = { cells in

}
```

0 comments on commit 793e250

Please sign in to comment.