{"action":"created","issue":{"url":"https://api.github.com/repos/kirualex/SwiftyGif/issues/20","repository_url":"https://api.github.com/repos/kirualex/SwiftyGif","labels_url":"https://api.github.com/repos/kirualex/SwiftyGif/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/kirualex/SwiftyGif/issues/20/comments","events_url":"https://api.github.com/repos/kirualex/SwiftyGif/issues/20/events","html_url":"https://github.com/kirualex/SwiftyGif/issues/20","id":193433290,"number":20,"title":"'shared' is unavailable: Use view controller based solutions where appropriate instead. On public func isDisplayedInScreen","user":{"login":"s3613032","id":22025439,"avatar_url":"https://avatars.githubusercontent.com/u/22025439?v=3","gravatar_id":"","url":"https://api.github.com/users/s3613032","html_url":"https://github.com/s3613032","followers_url":"https://api.github.com/users/s3613032/followers","following_url":"https://api.github.com/users/s3613032/following{/other_user}","gists_url":"https://api.github.com/users/s3613032/gists{/gist_id}","starred_url":"https://api.github.com/users/s3613032/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s3613032/subscriptions","organizations_url":"https://api.github.com/users/s3613032/orgs","repos_url":"https://api.github.com/users/s3613032/repos","events_url":"https://api.github.com/users/s3613032/events{/privacy}","received_events_url":"https://api.github.com/users/s3613032/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-05T08:01:19Z","updated_at":"2016-12-11T21:19:11Z","closed_at":null,"body":"Hello,\r\n\r\nI am getting the following error when load the library into my project:\r\n\r\nOnly happens when building an extension, any ideas?\r\n\r\n../UIImageView+SwiftyGif.swift:262:71: 'shared' is unavailable: Use view controller based solutions where appropriate instead.\r\n\r\n\r\n```\r\n\r\npublic func isDisplayedInScreen(_ imageView:UIView?) ->Bool{\r\n        if (self.isHidden) {\r\n            return false\r\n        }\r\n        \r\n      let screenRect = UIScreen.main.bounds\r\n        let viewRect = imageView!.convert(self.frame,to:UIApplication.shared.keyWindow)\r\n        \r\n        let intersectionRect = viewRect.intersection(screenRect);\r\n        if (intersectionRect.isEmpty || intersectionRect.isNull) {\r\n            return false\r\n        }\r\n        return (self.window != nil)\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/kirualex/SwiftyGif/issues/comments/266308697","html_url":"https://github.com/kirualex/SwiftyGif/issues/20#issuecomment-266308697","issue_url":"https://api.github.com/repos/kirualex/SwiftyGif/issues/20","id":266308697,"user":{"login":"kirualex","id":431974,"avatar_url":"https://avatars.githubusercontent.com/u/431974?v=3","gravatar_id":"","url":"https://api.github.com/users/kirualex","html_url":"https://github.com/kirualex","followers_url":"https://api.github.com/users/kirualex/followers","following_url":"https://api.github.com/users/kirualex/following{/other_user}","gists_url":"https://api.github.com/users/kirualex/gists{/gist_id}","starred_url":"https://api.github.com/users/kirualex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirualex/subscriptions","organizations_url":"https://api.github.com/users/kirualex/orgs","repos_url":"https://api.github.com/users/kirualex/repos","events_url":"https://api.github.com/users/kirualex/events{/privacy}","received_events_url":"https://api.github.com/users/kirualex/received_events","type":"User","site_admin":false},"created_at":"2016-12-11T21:19:11Z","updated_at":"2016-12-11T21:19:11Z","body":"Are you using GIF images into your extension? Maybe trying to exclude this pod from your extension target would do the trick."}}
{"actor":{"display_login":"kirualex"}}