Working on a departed coworkers project. I need to implement this objective-C code for this Facebook Pop animation into Swift. I will just paste it in its entirety since only a few lines long. I've looked at a few tutorials but being new at Pop and Swift has made this tricky. How would I write this in Swift?
- (void)scaleDownView:(UIView *)view
{
POPSpringAnimation *scaleAnimation = [POPSpringAnimation animationWithPropertyNamed:kPOPLayerScaleXY];
scaleAnimation.toValue = [NSValue valueWithCGSize:CGSizeMake(0.1, 0.1)];
scaleAnimation.springBounciness = 6.f;
[view.layer pop_addAnimation:scaleAnimation forKey:@"scaleAnimation"];
}