Callback during UIVIew / CALayer animation

I am looking for a way to get notified when the position of a view is updated during the animation. I checked different posts in StackOverflow, but no one answered my problems.

Adding myself as an observer to other properties, such as frame, position, etc., does not help - I get a call only when the frame is set, but not when the position is animated.

I also tried the solution from this post: Callback progress of the main animation , but it does not work.

I was hoping drawInRect, or layoutSubviews, or something like that, would be called, but that is not the case.

Any help would be appreciated.

+4
source share

Source: https://habr.com/ru/post/1540377/


All Articles