Various fixes

This commit is contained in:
Ilya Laktyushin
2022-12-19 16:08:43 +04:00
parent 29f7c8c9f0
commit 8a9a557870
5 changed files with 31 additions and 14 deletions

View File

@@ -308,7 +308,9 @@ public final class DrawingEntitiesView: UIView, TGPhotoDrawingEntitiesView {
view.layer.animateAlpha(from: 1.0, to: 0.0, duration: 0.2, removeOnCompletion: false, completion: { [weak view] _ in
view?.removeFromSuperview()
})
view.layer.animateScale(from: 0.0, to: -0.99, duration: 0.2, removeOnCompletion: false, additive: true)
if !(view.entity is DrawingVectorEntity) {
view.layer.animateScale(from: 0.0, to: -0.99, duration: 0.2, removeOnCompletion: false, additive: true)
}
}
} else {