{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/pop/issues/250","labels_url":"https://api.github.com/repos/facebook/pop/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/facebook/pop/issues/250/comments","events_url":"https://api.github.com/repos/facebook/pop/issues/250/events","html_url":"https://github.com/facebook/pop/issues/250","id":90935460,"number":250,"title":"POPDecayAnimation treating NSValue/CGRect as nil","user":{"login":"freak4pc","id":605076,"avatar_url":"https://avatars.githubusercontent.com/u/605076?v=3","gravatar_id":"","url":"https://api.github.com/users/freak4pc","html_url":"https://github.com/freak4pc","followers_url":"https://api.github.com/users/freak4pc/followers","following_url":"https://api.github.com/users/freak4pc/following{/other_user}","gists_url":"https://api.github.com/users/freak4pc/gists{/gist_id}","starred_url":"https://api.github.com/users/freak4pc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freak4pc/subscriptions","organizations_url":"https://api.github.com/users/freak4pc/orgs","repos_url":"https://api.github.com/users/freak4pc/repos","events_url":"https://api.github.com/users/freak4pc/events{/privacy}","received_events_url":"https://api.github.com/users/freak4pc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-25T11:30:49Z","updated_at":"2015-06-25T11:35:12Z","closed_at":null,"body":"Hey, I'm trying to animate the bounds of an object as follows \r\n\r\n``` \r\nlet imgPosAnim          = POPDecayAnimation(propertyNamed: kPOPLayerBounds)\r\nlet toPoint             = NSValue(CGRect: CGRectMake(0, 64, self.view.width, self.view.width))\r\nimgPosAnim.toValue      = toPoint\r\nimg.pop_addAnimation(imgPosAnim, forKey: \"position\")\r\n\r\nlog(\"\\(toPoint)\")\r\nlog(imgPosAnim.toValue)\r\n```\r\n\r\nThis logs out `ignoring to value on decay animation <POPDecayAnimation:0x7fdc87811640; from = null; to = null; deceleration = 0.998000>`\r\n\r\nThe two logs at the end show toPoint is `NSRect: {{0, 64}, {375, 375}}` but the assigned value of toValue is `nil` for some reason. \r\n\r\nPulling my hair on this. Any ideas?\r\n\r\nThanks :)"},"comment":{"url":"https://api.github.com/repos/facebook/pop/issues/comments/115216594","html_url":"https://github.com/facebook/pop/issues/250#issuecomment-115216594","issue_url":"https://api.github.com/repos/facebook/pop/issues/250","id":115216594,"user":{"login":"freak4pc","id":605076,"avatar_url":"https://avatars.githubusercontent.com/u/605076?v=3","gravatar_id":"","url":"https://api.github.com/users/freak4pc","html_url":"https://github.com/freak4pc","followers_url":"https://api.github.com/users/freak4pc/followers","following_url":"https://api.github.com/users/freak4pc/following{/other_user}","gists_url":"https://api.github.com/users/freak4pc/gists{/gist_id}","starred_url":"https://api.github.com/users/freak4pc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freak4pc/subscriptions","organizations_url":"https://api.github.com/users/freak4pc/orgs","repos_url":"https://api.github.com/users/freak4pc/repos","events_url":"https://api.github.com/users/freak4pc/events{/privacy}","received_events_url":"https://api.github.com/users/freak4pc/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T11:35:12Z","updated_at":"2015-06-25T11:35:12Z","body":"This workaround does the trick but I'm not sure why the aforementioned solution won't work.\r\nSeparating the creation and the property. \r\n```\r\nlet imgPosAnim          = POPSpringAnimation()\r\nimgPosAnim.property     = POPAnimatableProperty.propertyWithName(kPOPViewFrame) as! POPAnimatableProperty\r\n\r\n...\r\n...\r\n...\r\n```"}}