{"action":"created","issue":{"url":"https://api.github.com/repos/Yalantis/Koloda/issues/161","repository_url":"https://api.github.com/repos/Yalantis/Koloda","labels_url":"https://api.github.com/repos/Yalantis/Koloda/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/Yalantis/Koloda/issues/161/comments","events_url":"https://api.github.com/repos/Yalantis/Koloda/issues/161/events","html_url":"https://github.com/Yalantis/Koloda/issues/161","id":158888167,"number":161,"title":"Swipe right to see previous card","user":{"login":"lamelas","id":210068,"avatar_url":"https://avatars.githubusercontent.com/u/210068?v=3","gravatar_id":"","url":"https://api.github.com/users/lamelas","html_url":"https://github.com/lamelas","followers_url":"https://api.github.com/users/lamelas/followers","following_url":"https://api.github.com/users/lamelas/following{/other_user}","gists_url":"https://api.github.com/users/lamelas/gists{/gist_id}","starred_url":"https://api.github.com/users/lamelas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamelas/subscriptions","organizations_url":"https://api.github.com/users/lamelas/orgs","repos_url":"https://api.github.com/users/lamelas/repos","events_url":"https://api.github.com/users/lamelas/events{/privacy}","received_events_url":"https://api.github.com/users/lamelas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-07T10:19:41Z","updated_at":"2016-06-07T10:27:14Z","closed_at":null,"body":"How can I use a swipe right to show me the previous card in the stack? I tried this but because it's only called after the swipe, I get the same card I just swiped.\r\n\r\n```\r\n   func koloda(koloda: KolodaView, didSwipeCardAtIndex index: UInt, inDirection direction: SwipeResultDirection) {\r\n        if(direction == .Right) {\r\n            koloda.revertAction()\r\n        }\r\n    }\r\n```\r\nCan we get a willSwipeCardAtIndex or something like that to be able to revert the action before the swipe happens?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Yalantis/Koloda/issues/comments/224240957","html_url":"https://github.com/Yalantis/Koloda/issues/161#issuecomment-224240957","issue_url":"https://api.github.com/repos/Yalantis/Koloda/issues/161","id":224240957,"user":{"login":"lamelas","id":210068,"avatar_url":"https://avatars.githubusercontent.com/u/210068?v=3","gravatar_id":"","url":"https://api.github.com/users/lamelas","html_url":"https://github.com/lamelas","followers_url":"https://api.github.com/users/lamelas/followers","following_url":"https://api.github.com/users/lamelas/following{/other_user}","gists_url":"https://api.github.com/users/lamelas/gists{/gist_id}","starred_url":"https://api.github.com/users/lamelas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamelas/subscriptions","organizations_url":"https://api.github.com/users/lamelas/orgs","repos_url":"https://api.github.com/users/lamelas/repos","events_url":"https://api.github.com/users/lamelas/events{/privacy}","received_events_url":"https://api.github.com/users/lamelas/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T10:27:14Z","updated_at":"2016-06-07T10:27:14Z","body":"I can get it to work by editing the revertAction method and doing\r\ncurrentCardIndex -= 2\r\ninstead of\r\ncurrentCardIndex -= 1\r\n\r\nBut I feel dirty... :)"}}
{"actor":{"display_login":"lamelas"}}