Fix transition_out animation when switching back to the default state

commit_hash:ba0b5d53b6103bcb460f4e88994aadd2fd304c3c
This commit is contained in:
avarec
2025-04-11 13:57:57 +03:00
parent 228d63c327
commit 5985ba8d7c
@@ -168,9 +168,8 @@ final class DetachableAnimationBlockView: BlockView, DelayedVisibilityActionView
childView.frame = convertFrame(to: container)
self.childView = nil
container.addSubview(childView)
childView.perform(animationOut, animated: true, completion: { [weak self] in
childView.perform(animationOut, animated: true, completion: {
childView.removeFromSuperview()
self?.animationOut = nil
})
}