diff --git a/Example/CheersDemo/CheersDemo/Sources/ViewController.swift b/Example/CheersDemo/CheersDemo/Sources/ViewController.swift index f56e49c..0be3d19 100644 --- a/Example/CheersDemo/CheersDemo/Sources/ViewController.swift +++ b/Example/CheersDemo/CheersDemo/Sources/ViewController.swift @@ -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) } diff --git a/Example/CheersDemo/Podfile.lock b/Example/CheersDemo/Podfile.lock index 36bc1eb..0850fd7 100644 --- a/Example/CheersDemo/Podfile.lock +++ b/Example/CheersDemo/Podfile.lock @@ -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 diff --git a/README.md b/README.md index 8897f91..4967100 100644 --- a/README.md +++ b/README.md @@ -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 - + } ```