{"action":"created","issue":{"url":"https://api.github.com/repos/andreamazz/UIView-Shake/issues/11","repository_url":"https://api.github.com/repos/andreamazz/UIView-Shake","labels_url":"https://api.github.com/repos/andreamazz/UIView-Shake/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/andreamazz/UIView-Shake/issues/11/comments","events_url":"https://api.github.com/repos/andreamazz/UIView-Shake/issues/11/events","html_url":"https://github.com/andreamazz/UIView-Shake/issues/11","id":157216184,"number":11,"title":"Shake in completion block of another shake","user":{"login":"sochalewski","id":5808283,"avatar_url":"https://avatars.githubusercontent.com/u/5808283?v=3","gravatar_id":"","url":"https://api.github.com/users/sochalewski","html_url":"https://github.com/sochalewski","followers_url":"https://api.github.com/users/sochalewski/followers","following_url":"https://api.github.com/users/sochalewski/following{/other_user}","gists_url":"https://api.github.com/users/sochalewski/gists{/gist_id}","starred_url":"https://api.github.com/users/sochalewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sochalewski/subscriptions","organizations_url":"https://api.github.com/users/sochalewski/orgs","repos_url":"https://api.github.com/users/sochalewski/repos","events_url":"https://api.github.com/users/sochalewski/events{/privacy}","received_events_url":"https://api.github.com/users/sochalewski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/andreamazz/UIView-Shake/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-27T14:14:50Z","updated_at":"2016-05-27T14:23:26Z","closed_at":"2016-05-27T14:23:26Z","body":"Is it even possible? I tried this and it works, but shake inside the completion handler looks like it has smaller delta than given. It barely shakes vertical.\r\n\r\n```swift\r\nview.subviews.forEach {\r\n    $0.shake(5, withDelta: 50.0, speed: 1.0, shakeDirection: .Horizontal, completion: { \r\n        self.view.subviews.forEach {\r\n            $0.shake(5, withDelta: 50.0, speed: 1.0, shakeDirection: .Vertical, completion: nil)\r\n        }\r\n    })\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/andreamazz/UIView-Shake/issues/comments/222159607","html_url":"https://github.com/andreamazz/UIView-Shake/issues/11#issuecomment-222159607","issue_url":"https://api.github.com/repos/andreamazz/UIView-Shake/issues/11","id":222159607,"user":{"login":"sochalewski","id":5808283,"avatar_url":"https://avatars.githubusercontent.com/u/5808283?v=3","gravatar_id":"","url":"https://api.github.com/users/sochalewski","html_url":"https://github.com/sochalewski","followers_url":"https://api.github.com/users/sochalewski/followers","following_url":"https://api.github.com/users/sochalewski/following{/other_user}","gists_url":"https://api.github.com/users/sochalewski/gists{/gist_id}","starred_url":"https://api.github.com/users/sochalewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sochalewski/subscriptions","organizations_url":"https://api.github.com/users/sochalewski/orgs","repos_url":"https://api.github.com/users/sochalewski/repos","events_url":"https://api.github.com/users/sochalewski/events{/privacy}","received_events_url":"https://api.github.com/users/sochalewski/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T14:23:26Z","updated_at":"2016-05-27T14:23:26Z","body":"You're completely right! This solution works perfect. Thank you so much 👍 "}}
{"actor":{"display_login":"sochalewski"}}