BAFluidView
BAFluidView copied to clipboard
Reverse animation to 0
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)
Do you still need help here?
@antiguab have the same issue, any ideas?