ConfettiSwiftUI icon indicating copy to clipboard operation
ConfettiSwiftUI copied to clipboard

repeat configuration

Open dimasno1 opened this issue 3 years ago • 1 comments

Repeat configuration is a bit misleading. Seems like 0 repetitions should not produce any confetti? Did I miss something?

Expected Behaviour

code:

.confettiCannon(counter: $counter, repetitions: 3, repetitionInterval: 0.7)

produces 3 repeats

Actual Behaviour

code:

.confettiCannon(counter: $counter, repetitions: 3, repetitionInterval: 0.7)

produces 4 repeats

every time repeats count greater by '1' than expected

Steps to Reproduce the Issue

use any repetitions value in Repeat Configuration and compare with result.

even in README

.confettiCannon(counter: $counter, repetitions: 3, repetitionInterval: 0.7)

produces 4 repeats

dimasno1 avatar Jan 11 '23 12:01 dimasno1

PR is open.

Makapre avatar Aug 03 '23 12:08 Makapre