BalestraPatrick / ValueStepper

A Stepper object that displays its value.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple ValueStepper Used in CollectionView keeps calling target function

perinpatel opened this issue · comments

commented

When we use ValueStepper in collectionView Cell, every time reusable cell is allocated, ValueStepper calls target method even though when it is not required. Also when altering value of the stepper, target method is called. What I think is you can remove Action(for:) from DidSet of value variable.