BAFluidView icon indicating copy to clipboard operation
BAFluidView copied to clipboard

Reverse animation to 0

Open glitch182 opened this issue 6 years ago • 2 comments

I am trying to animate the FluidView from top (1.0) to bottom (0.0) On doing so, the FluidView just remains at the top, without any reverse animation.

I tried animating from 1.0 to 0.1, with a fillDuration of 7, but the FluidView just quickly animates to 0.1 in one second.

Here is the code for reference:

fluidView = BAFluidView(frame: fluidViewFrame, maxAmplitude: 25, minAmplitude: 20, amplitudeIncrement: 5, startElevation: 1.0)
fluidView.backgroundColor = LIGHTER_GRAY
fluidView.fillAutoReverse = false
fluidView.fillDuration = 7
fluidView.strokeColor = OFF_WHITE
fluidView.fillRepeatCount = 1
fluidView.fillColor = WHITE
fluidView.fill(to: 0.0)

glitch182 avatar Mar 22 '18 09:03 glitch182

Do you still need help here?

antiguab avatar Jan 02 '19 00:01 antiguab

@antiguab have the same issue, any ideas?

bizibizi avatar Apr 22 '19 11:04 bizibizi