Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix demo project not building with the latest Cheers version #14

Merged
merged 1 commit into from
Dec 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Example/CheersDemo/CheersDemo/Sources/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
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 `../../`)
Expand All @@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: "../../"

SPEC CHECKSUMS:
Cheers: eb2a513bd7fbc89b9b34017b7456473402eeca16
Cheers: df4128f342df005e53ccbba971a0bdfb5d735f6d

PODFILE CHECKSUM: 5e6d52651a9c11cd39c5d53c6768b84685a3eb28

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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: [
Expand All @@ -52,7 +52,7 @@ cheerView.config.colors = [UIColor.red, UIColor.green]

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

}
```

Expand Down