{"action":"created","issue":{"url":"https://api.github.com/repos/Orderella/PopupDialog/issues/23","repository_url":"https://api.github.com/repos/Orderella/PopupDialog","labels_url":"https://api.github.com/repos/Orderella/PopupDialog/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/Orderella/PopupDialog/issues/23/comments","events_url":"https://api.github.com/repos/Orderella/PopupDialog/issues/23/events","html_url":"https://github.com/Orderella/PopupDialog/issues/23","id":171204601,"number":23,"title":"dismissViewControllerAnimated is not working for custom view controller","user":{"login":"mlight3","id":2208643,"avatar_url":"https://avatars.githubusercontent.com/u/2208643?v=3","gravatar_id":"","url":"https://api.github.com/users/mlight3","html_url":"https://github.com/mlight3","followers_url":"https://api.github.com/users/mlight3/followers","following_url":"https://api.github.com/users/mlight3/following{/other_user}","gists_url":"https://api.github.com/users/mlight3/gists{/gist_id}","starred_url":"https://api.github.com/users/mlight3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlight3/subscriptions","organizations_url":"https://api.github.com/users/mlight3/orgs","repos_url":"https://api.github.com/users/mlight3/repos","events_url":"https://api.github.com/users/mlight3/events{/privacy}","received_events_url":"https://api.github.com/users/mlight3/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Orderella/PopupDialog/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-15T16:18:06Z","updated_at":"2016-08-16T02:09:23Z","closed_at":"2016-08-15T18:59:58Z","body":"I found the solution for this from issue #16, but I think it should be opened again. \r\nI use same code as #16 , but it is a little bit tricky. Also in a [Custom View Controller](https://github.com/Orderella/PopupDialog#custom-view-controller) section, you says \r\n\r\n> Being a subclass of view controller, this can be easily done via dismissViewControllerAnimated(flag: Bool, completion: (() -> Void)?).\r\n\r\nI found about two solutions for this. \r\n1. Use addChildViewController in PopupDialog class & use parentViewController in Subclass ViewController.\r\n2. Created class for subclassing that has presenter variable. Then assign presenter inside PopupDialog.\r\n\r\nWhich one is better? I think first one is simple. 😄"},"comment":{"url":"https://api.github.com/repos/Orderella/PopupDialog/issues/comments/239982876","html_url":"https://github.com/Orderella/PopupDialog/issues/23#issuecomment-239982876","issue_url":"https://api.github.com/repos/Orderella/PopupDialog/issues/23","id":239982876,"user":{"login":"mlight3","id":2208643,"avatar_url":"https://avatars.githubusercontent.com/u/2208643?v=3","gravatar_id":"","url":"https://api.github.com/users/mlight3","html_url":"https://github.com/mlight3","followers_url":"https://api.github.com/users/mlight3/followers","following_url":"https://api.github.com/users/mlight3/following{/other_user}","gists_url":"https://api.github.com/users/mlight3/gists{/gist_id}","starred_url":"https://api.github.com/users/mlight3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlight3/subscriptions","organizations_url":"https://api.github.com/users/mlight3/orgs","repos_url":"https://api.github.com/users/mlight3/repos","events_url":"https://api.github.com/users/mlight3/events{/privacy}","received_events_url":"https://api.github.com/users/mlight3/received_events","type":"User","site_admin":false},"created_at":"2016-08-16T02:09:23Z","updated_at":"2016-08-16T02:09:23Z","body":"@mwfire Okay. I understood what you mean. Thanks. :)"}}
{"actor":{"display_login":"mlight3"}}