I have a view that has some scale transformations. And when I apply some UIKit Dynamics on it, it zeroes them out. /: How can I keep the existing transformation on the view whil
Inspired by this answer, I have a solution: update the transform on every frame of the animation
let attachment = UIAttachmentBehavior(item: item, attachedTo: item) // Workaround - attach the item to itself
attachment?.action = { () in
item.transform = item.transform.scaledBy(x: 1.5, y: 1.5)
}
animator.addBehavior(attachment)