{"action":"created","issue":{"url":"https://api.github.com/repos/Raizlabs/BonMot/issues/251","repository_url":"https://api.github.com/repos/Raizlabs/BonMot","labels_url":"https://api.github.com/repos/Raizlabs/BonMot/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/Raizlabs/BonMot/issues/251/comments","events_url":"https://api.github.com/repos/Raizlabs/BonMot/issues/251/events","html_url":"https://github.com/Raizlabs/BonMot/issues/251","id":191578933,"number":251,"title":"Support use in app extensions","user":{"login":"ZevEisenberg","id":464574,"avatar_url":"https://avatars1.githubusercontent.com/u/464574?v=3","gravatar_id":"","url":"https://api.github.com/users/ZevEisenberg","html_url":"https://github.com/ZevEisenberg","followers_url":"https://api.github.com/users/ZevEisenberg/followers","following_url":"https://api.github.com/users/ZevEisenberg/following{/other_user}","gists_url":"https://api.github.com/users/ZevEisenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/ZevEisenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZevEisenberg/subscriptions","organizations_url":"https://api.github.com/users/ZevEisenberg/orgs","repos_url":"https://api.github.com/users/ZevEisenberg/repos","events_url":"https://api.github.com/users/ZevEisenberg/events{/privacy}","received_events_url":"https://api.github.com/users/ZevEisenberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-11-24T18:54:53Z","updated_at":"2017-04-24T17:28:14Z","closed_at":null,"body":"See [this similar request for Anchorage](https://github.com/Raizlabs/Anchorage/pull/21#issuecomment-262791384). When I enable the `APPLICATION_EXTENSION_API_ONLY` flag, I get this:\r\n\r\n```BonMot/Sources/UIKit/UIKit+Helpers.swift:61:26: error: 'shared' is unavailable: Use view controller based solutions where appropriate instead.\r\n        if UIApplication.shared.delegate != nil {\r\n                         ^~~~~~\r\nUIKit.UIApplication:5:20: note: 'shared' has been explicitly marked unavailable here\r\n    open class var shared: UIApplication { get }\r\n                   ^\r\nBonMot/Sources/UIKit/UIKit+Helpers.swift:62:34: error: 'shared' is unavailable: Use view controller based solutions where appropriate instead.\r\n            return UIApplication.shared.preferredContentSizeCategory\r\n                                 ^~~~~~\r\nUIKit.UIApplication:5:20: note: 'shared' has been explicitly marked unavailable here\r\n    open class var shared: UIApplication { get }\r\n                   ^\r\n```"},"comment":{"url":"https://api.github.com/repos/Raizlabs/BonMot/issues/comments/296758802","html_url":"https://github.com/Raizlabs/BonMot/issues/251#issuecomment-296758802","issue_url":"https://api.github.com/repos/Raizlabs/BonMot/issues/251","id":296758802,"user":{"login":"ZevEisenberg","id":464574,"avatar_url":"https://avatars1.githubusercontent.com/u/464574?v=3","gravatar_id":"","url":"https://api.github.com/users/ZevEisenberg","html_url":"https://github.com/ZevEisenberg","followers_url":"https://api.github.com/users/ZevEisenberg/followers","following_url":"https://api.github.com/users/ZevEisenberg/following{/other_user}","gists_url":"https://api.github.com/users/ZevEisenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/ZevEisenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZevEisenberg/subscriptions","organizations_url":"https://api.github.com/users/ZevEisenberg/orgs","repos_url":"https://api.github.com/users/ZevEisenberg/repos","events_url":"https://api.github.com/users/ZevEisenberg/events{/privacy}","received_events_url":"https://api.github.com/users/ZevEisenberg/received_events","type":"User","site_admin":false},"created_at":"2017-04-24T17:28:14Z","updated_at":"2017-04-24T17:28:14Z","body":"Revisiting this, I think it would be fine to support extensions only in iOS 10+."}}
{"actor":{"display_login":"ZevEisenberg"}}