{"action":"created","issue":{"url":"https://api.github.com/repos/DianQK/TransitionTreasury/issues/7","labels_url":"https://api.github.com/repos/DianQK/TransitionTreasury/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/DianQK/TransitionTreasury/issues/7/comments","events_url":"https://api.github.com/repos/DianQK/TransitionTreasury/issues/7/events","html_url":"https://github.com/DianQK/TransitionTreasury/pull/7","id":128929426,"number":7,"title":"Automatically setting .Pop as the transition status for .Pop transitions","user":{"login":"leoMehlig","id":9119485,"avatar_url":"https://avatars.githubusercontent.com/u/9119485?v=3","gravatar_id":"","url":"https://api.github.com/users/leoMehlig","html_url":"https://github.com/leoMehlig","followers_url":"https://api.github.com/users/leoMehlig/followers","following_url":"https://api.github.com/users/leoMehlig/following{/other_user}","gists_url":"https://api.github.com/users/leoMehlig/gists{/gist_id}","starred_url":"https://api.github.com/users/leoMehlig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leoMehlig/subscriptions","organizations_url":"https://api.github.com/users/leoMehlig/orgs","repos_url":"https://api.github.com/users/leoMehlig/repos","events_url":"https://api.github.com/users/leoMehlig/events{/privacy}","received_events_url":"https://api.github.com/users/leoMehlig/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-26T20:17:12Z","updated_at":"2016-01-27T01:45:53Z","closed_at":"2016-01-27T01:40:24Z","pull_request":{"url":"https://api.github.com/repos/DianQK/TransitionTreasury/pulls/7","html_url":"https://github.com/DianQK/TransitionTreasury/pull/7","diff_url":"https://github.com/DianQK/TransitionTreasury/pull/7.diff","patch_url":"https://github.com/DianQK/TransitionTreasury/pull/7.patch"},"body":"If the navigationDelegate ask for the transition to use for the pop\ntransition after pressing the “Back”-Button, the transitions\ntransitonStatus now automatically gets set to .Pop (only if it used to\nbe .Push)\n\nI don’t know if this might cause problems, but I find this to be the expected behaviour. 99% of the time you want to go back with the same transition as you pushed, but  I found know quick way to change the transition of the back segue to .Pop.\n\nAlso the tr_pop function behave the same way.\n\nI checked if the transition used to be .Push, just in case the transition was customised to be something else. I don’t know if this check is necessary.\n\nThanks for this great library!!!"},"comment":{"url":"https://api.github.com/repos/DianQK/TransitionTreasury/issues/comments/175335547","html_url":"https://github.com/DianQK/TransitionTreasury/pull/7#issuecomment-175335547","issue_url":"https://api.github.com/repos/DianQK/TransitionTreasury/issues/7","id":175335547,"user":{"login":"DianQK","id":10829914,"avatar_url":"https://avatars.githubusercontent.com/u/10829914?v=3","gravatar_id":"","url":"https://api.github.com/users/DianQK","html_url":"https://github.com/DianQK","followers_url":"https://api.github.com/users/DianQK/followers","following_url":"https://api.github.com/users/DianQK/following{/other_user}","gists_url":"https://api.github.com/users/DianQK/gists{/gist_id}","starred_url":"https://api.github.com/users/DianQK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DianQK/subscriptions","organizations_url":"https://api.github.com/users/DianQK/orgs","repos_url":"https://api.github.com/users/DianQK/repos","events_url":"https://api.github.com/users/DianQK/events{/privacy}","received_events_url":"https://api.github.com/users/DianQK/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T01:45:53Z","updated_at":"2016-01-27T01:45:53Z","body":"Thank!!!!! Great~  I will remove this code `transitionDelegate?.transition.transitionStatus = .Pop` in `UINavigationController+TRPushPop.swift`, and add code like this:\r\n\r\n```swift\r\npublic func navigationController(navigationController: UINavigationController, animationControllerForOperation operation: UINavigationControllerOperation, fromViewController fromVC: UIViewController, toViewController toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? {\r\n        switch operation {\r\n        case .Push :\r\n            transition.transitionStatus = .Push\r\n            return transition\r\n        case .Pop :\r\n            transition.transitionStatus = .Pop\r\n            return transition\r\n        case .None :\r\n            return nil\r\n        }\r\n    }\r\n```"}}