{"action":"created","issue":{"url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/152","repository_url":"https://api.github.com/repos/John-Lluch/SWRevealViewController","labels_url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/152/comments","events_url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/152/events","html_url":"https://github.com/John-Lluch/SWRevealViewController/issues/152","id":23666505,"node_id":"MDU6SXNzdWUyMzY2NjUwNQ==","number":152,"title":"Disable FrontViewController when Rear is Displayed?","user":{"login":"adamdehaven","id":2229946,"node_id":"MDQ6VXNlcjIyMjk5NDY=","avatar_url":"https://avatars3.githubusercontent.com/u/2229946?v=4","gravatar_id":"","url":"https://api.github.com/users/adamdehaven","html_url":"https://github.com/adamdehaven","followers_url":"https://api.github.com/users/adamdehaven/followers","following_url":"https://api.github.com/users/adamdehaven/following{/other_user}","gists_url":"https://api.github.com/users/adamdehaven/gists{/gist_id}","starred_url":"https://api.github.com/users/adamdehaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamdehaven/subscriptions","organizations_url":"https://api.github.com/users/adamdehaven/orgs","repos_url":"https://api.github.com/users/adamdehaven/repos","events_url":"https://api.github.com/users/adamdehaven/events{/privacy}","received_events_url":"https://api.github.com/users/adamdehaven/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2013-12-03T19:21:53Z","updated_at":"2018-08-31T15:28:29Z","closed_at":"2014-03-28T22:50:42Z","author_association":"NONE","body":"I saw this solution: https://github.com/John-Lluch/SWRevealViewController/issues/92#issuecomment-24543131\n\nWhen I implement the following code in one of my FrontViewControllers, it never gets called. Am I missing something? Or where should it go?\n\n```\n- (void)revealController:(SWRevealViewController *)revealController willMoveToPosition:(FrontViewPosition)position\n{\n    if(position == FrontViewPositionLeft) {\n        self.view.userInteractionEnabled = YES;\n    } else {\n        self.view.userInteractionEnabled = NO;\n    }\n}\n\n- (void)revealController:(SWRevealViewController *)revealController didMoveToPosition:(FrontViewPosition)position\n{\n    if(position == FrontViewPositionLeft) {\n        self.view.userInteractionEnabled = YES;\n    } else {\n        self.view.userInteractionEnabled = NO;\n    }\n}\n```\n"},"comment":{"url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/comments/417700322","html_url":"https://github.com/John-Lluch/SWRevealViewController/issues/152#issuecomment-417700322","issue_url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/152","id":417700322,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzcwMDMyMg==","user":{"login":"iDevelopper","id":1782450,"node_id":"MDQ6VXNlcjE3ODI0NTA=","avatar_url":"https://avatars3.githubusercontent.com/u/1782450?v=4","gravatar_id":"","url":"https://api.github.com/users/iDevelopper","html_url":"https://github.com/iDevelopper","followers_url":"https://api.github.com/users/iDevelopper/followers","following_url":"https://api.github.com/users/iDevelopper/following{/other_user}","gists_url":"https://api.github.com/users/iDevelopper/gists{/gist_id}","starred_url":"https://api.github.com/users/iDevelopper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iDevelopper/subscriptions","organizations_url":"https://api.github.com/users/iDevelopper/orgs","repos_url":"https://api.github.com/users/iDevelopper/repos","events_url":"https://api.github.com/users/iDevelopper/events{/privacy}","received_events_url":"https://api.github.com/users/iDevelopper/received_events","type":"User","site_admin":false},"created_at":"2018-08-31T15:28:29Z","updated_at":"2018-08-31T15:28:29Z","author_association":"NONE","body":"You did not say us how you disabled the front view finally.\r\n\r\nWhen you tap on front view, willMoveToPosition is fired and the userInteractionEnabled is set to true. So the pan gesture will work again. I suggest you check if the top view controller is ABC in willMoveToPosition delegate method."}}
{"actor":{"display_login":"iDevelopper"}}