marcosgriselli / ViewAnimator

ViewAnimator brings your UI to life with just one line
MIT License
7.3k stars 488 forks source link

EXC_BREAKPOINT in animateViews #27

Closed truemetal closed 6 years ago

truemetal commented 6 years ago

Hey

The issue happens right here, in my case dispatchGroup.leave() happens more times then dispatchGroup.enter() which causes EXC_BREAKPOINT

Probably, subviews count changes during asyncAfter

The code, invoked the animation is this:

let fromAnimation = AnimationType.from(direction: .right, offset: 400.0)   
animateViews(animations: [fromAnimation], initialAlpha: 0.0, finalAlpha: 1.0, delay: 0.0, duration: 0.2, animationInterval: 0.2, completion: nil)

Cheers

animatable_swift

marcosgriselli commented 6 years ago

Closed by #28