Я пытаюсь анимировать границы UIButton, используя POPSpringAnimation в Facebook, но я не могу найти то, что я должен использовать в быстрой замене NSValue.valueWithCGRect
Это то, что я пытаюсь сделать:
@IBAction func buttonTapped(sender : UIButton) {
    var springAnimation = POPSpringAnimation()
    springAnimation.property = POPAnimatableProperty.propertyWithName(kPOPLayerBounds) as POPAnimatableProperty
    springAnimation.springBounciness = 12.0
    springAnimation.springSpeed = 10.0
    springAnimation.toValue = NSValue.valueWithCGRect(newBounds)
    shutterButton.pop_addAnimation(springAnimation, forKey: "size")
}
