{"action":"created","issue":{"url":"https://api.github.com/repos/ThornTechPublic/InteractiveModal/issues/1","repository_url":"https://api.github.com/repos/ThornTechPublic/InteractiveModal","labels_url":"https://api.github.com/repos/ThornTechPublic/InteractiveModal/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ThornTechPublic/InteractiveModal/issues/1/comments","events_url":"https://api.github.com/repos/ThornTechPublic/InteractiveModal/issues/1/events","html_url":"https://github.com/ThornTechPublic/InteractiveModal/issues/1","id":136374188,"number":1,"title":"Transition can break when the presenting and presented view controllers have different status bar styles","user":{"login":"ev0lution","id":163146,"avatar_url":"https://avatars.githubusercontent.com/u/163146?v=3","gravatar_id":"","url":"https://api.github.com/users/ev0lution","html_url":"https://github.com/ev0lution","followers_url":"https://api.github.com/users/ev0lution/followers","following_url":"https://api.github.com/users/ev0lution/following{/other_user}","gists_url":"https://api.github.com/users/ev0lution/gists{/gist_id}","starred_url":"https://api.github.com/users/ev0lution/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ev0lution/subscriptions","organizations_url":"https://api.github.com/users/ev0lution/orgs","repos_url":"https://api.github.com/users/ev0lution/repos","events_url":"https://api.github.com/users/ev0lution/events{/privacy}","received_events_url":"https://api.github.com/users/ev0lution/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-25T12:28:54Z","updated_at":"2016-02-25T13:06:34Z","closed_at":null,"body":"I've just spent hours pulling my hair out trying to figure out why my project was exhibiting a strange bug but your project works fine, and I've finally got it! (but not how to fix it, sadly)\r\n\r\nIf you use view-controller based status bar styles (`UIViewControllerBasedStatusBarAppearance` in Info.plist), there's a nasty bug that breaks the transition and leaves the app unusable. To replicate, see the following:\r\n\r\nTry to drag down on the modal view a tiny bit very quickly (for example, drag down about 50 pixels only just clicking the mouse for a split second)\r\n\r\nIn the original project, this works as expected - the modal view snaps back to the top, you can continue to do this (or drag further down to dismiss) and the \"close\" button continues to function.\r\n\r\nNow change the status bar style of *one* of the view controllers so that they're both different - e.g. in  `ModalViewController.swift`:\r\n\r\n    override func preferredStatusBarStyle() -> UIStatusBarStyle {\r\n        return UIStatusBarStyle.LightContent\r\n    }\r\n\r\nRun the app and try the same thing a couple of times, and the transition will break: the modal will snap back to the top but will no longer respond to the gesture recognizer, and the \"close\" button does not work to dismiss the modal view manually. The status bar will be stuck in the state of the presenting view controller.\r\n\r\nThis **only** happens when the status bar is a different style between the two view controllers, but I need this in my app, and I'm not sure how to fix it at all. :("},"comment":{"url":"https://api.github.com/repos/ThornTechPublic/InteractiveModal/issues/comments/188778454","html_url":"https://github.com/ThornTechPublic/InteractiveModal/issues/1#issuecomment-188778454","issue_url":"https://api.github.com/repos/ThornTechPublic/InteractiveModal/issues/1","id":188778454,"user":{"login":"chenr2","id":10889121,"avatar_url":"https://avatars.githubusercontent.com/u/10889121?v=3","gravatar_id":"","url":"https://api.github.com/users/chenr2","html_url":"https://github.com/chenr2","followers_url":"https://api.github.com/users/chenr2/followers","following_url":"https://api.github.com/users/chenr2/following{/other_user}","gists_url":"https://api.github.com/users/chenr2/gists{/gist_id}","starred_url":"https://api.github.com/users/chenr2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenr2/subscriptions","organizations_url":"https://api.github.com/users/chenr2/orgs","repos_url":"https://api.github.com/users/chenr2/repos","events_url":"https://api.github.com/users/chenr2/events{/privacy}","received_events_url":"https://api.github.com/users/chenr2/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T13:06:33Z","updated_at":"2016-02-25T13:06:33Z","body":"@ev0lution Thanks for reporting this issue and including detailed troubleshooting. I'll take a look."}}