{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/pop/issues/215","labels_url":"https://api.github.com/repos/facebook/pop/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/facebook/pop/issues/215/comments","events_url":"https://api.github.com/repos/facebook/pop/issues/215/events","html_url":"https://github.com/facebook/pop/issues/215","id":58518127,"number":215,"title":"Create a POPAnimationGroup","user":{"login":"cfcommando","id":8451005,"avatar_url":"https://avatars.githubusercontent.com/u/8451005?v=3","gravatar_id":"","url":"https://api.github.com/users/cfcommando","html_url":"https://github.com/cfcommando","followers_url":"https://api.github.com/users/cfcommando/followers","following_url":"https://api.github.com/users/cfcommando/following{/other_user}","gists_url":"https://api.github.com/users/cfcommando/gists{/gist_id}","starred_url":"https://api.github.com/users/cfcommando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfcommando/subscriptions","organizations_url":"https://api.github.com/users/cfcommando/orgs","repos_url":"https://api.github.com/users/cfcommando/repos","events_url":"https://api.github.com/users/cfcommando/events{/privacy}","received_events_url":"https://api.github.com/users/cfcommando/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/pop/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-22T20:55:57Z","updated_at":"2015-08-04T18:05:33Z","closed_at":null,"body":"cc @kimon \r\n\r\n(Or alternatively, call it `POPCompositeAnimation`, or something.)\r\n\r\nThis would probably depart from CoreAnimation APIs in that rather than implicitly creating dependencies with timing, it would be necessary to create dependencies, i.e:\r\n\r\n* `-[POPCompositeAnimation addAnimation:firstAnim];`\r\n* `-[POPCompositeAnimation addAnimation:secondAnim afterAnimation:firstAnim];`\r\n* `-[POPCompositeAnimation addAnimation:alsoSecondAnim afterAnimation:firstAnim];`\r\n* `-[POPCompositeAnimation addAnimation:lastAnim afterAnimations:@[secondAnim, alsoSecondAnim]];`\r\n\r\n...or something to that effect. The limitation of the above API would be that they would all apply to a single object if abstracted as such, unless one added an additional parameter to determine which objects the animations should apply to.\r\n\r\nAn alternative approach might be to create sub-animators, which might end up with a cleaner / more elegant API than the above suggested API, depending on how that's structured.\r\n\r\n---\r\n\r\nMy use case for this is that I'm animating a view scaling to aspect fit inside another view so the rasterized scaling doesn't stretch, and I want to follow that animation up with a (possibly more expensive but much shorter) animation to extend the remaining dimension of the fitted rectangle into the full rectangle.\r\n\r\n(Less abstractly, I'm writing a seamless transition from a cell in a collection view to a view controller by way of a zooming animation from the cell into the view controller, and their rects have different aspect ratios. I'm scaling the rectangle while preserving the aspect for as long as possible)\r\n\r\n---"},"comment":{"url":"https://api.github.com/repos/facebook/pop/issues/comments/127694820","html_url":"https://github.com/facebook/pop/issues/215#issuecomment-127694820","issue_url":"https://api.github.com/repos/facebook/pop/issues/215","id":127694820,"user":{"login":"facebook-github-bot-1","id":8397290,"avatar_url":"https://avatars.githubusercontent.com/u/8397290?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook-github-bot-1","html_url":"https://github.com/facebook-github-bot-1","followers_url":"https://api.github.com/users/facebook-github-bot-1/followers","following_url":"https://api.github.com/users/facebook-github-bot-1/following{/other_user}","gists_url":"https://api.github.com/users/facebook-github-bot-1/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook-github-bot-1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook-github-bot-1/subscriptions","organizations_url":"https://api.github.com/users/facebook-github-bot-1/orgs","repos_url":"https://api.github.com/users/facebook-github-bot-1/repos","events_url":"https://api.github.com/users/facebook-github-bot-1/events{/privacy}","received_events_url":"https://api.github.com/users/facebook-github-bot-1/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T18:05:33Z","updated_at":"2015-08-04T18:05:33Z","body":"Thank you for reporting this issue and appreciate your patience. We've  notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed."}}