Skip to content

Commit

Permalink
Fixed calling of delegates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Vorobei committed Jul 29, 2021
1 parent 6184278 commit 0870728
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file not shown.
2 changes: 1 addition & 1 deletion Sources/SPConfetti/SPConfettiView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ open class SPConfettiView: UIView {
public func stopAnimating(animatable: Bool = true) {
if animatable {
emitterLayer?.lifetime = .zero

delegate?.confettiDidStopAnimating?(view: self)
// Clean sublayers which not using already.
if let time = emitterLayer?.emitterCells?.first?.lifetime {
let layerForRemove = self.emitterLayer
Expand Down

0 comments on commit 0870728

Please sign in to comment.