{"action":"closed","issue":{"url":"https://api.github.com/repos/Vaberer/Font-Awesome-Swift/issues/42","repository_url":"https://api.github.com/repos/Vaberer/Font-Awesome-Swift","labels_url":"https://api.github.com/repos/Vaberer/Font-Awesome-Swift/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/Vaberer/Font-Awesome-Swift/issues/42/comments","events_url":"https://api.github.com/repos/Vaberer/Font-Awesome-Swift/issues/42/events","html_url":"https://github.com/Vaberer/Font-Awesome-Swift/issues/42","id":172602924,"number":42,"title":"UITabBarItem selectedImage","user":{"login":"fbomb111","id":482183,"avatar_url":"https://avatars.githubusercontent.com/u/482183?v=3","gravatar_id":"","url":"https://api.github.com/users/fbomb111","html_url":"https://github.com/fbomb111","followers_url":"https://api.github.com/users/fbomb111/followers","following_url":"https://api.github.com/users/fbomb111/following{/other_user}","gists_url":"https://api.github.com/users/fbomb111/gists{/gist_id}","starred_url":"https://api.github.com/users/fbomb111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbomb111/subscriptions","organizations_url":"https://api.github.com/users/fbomb111/orgs","repos_url":"https://api.github.com/users/fbomb111/repos","events_url":"https://api.github.com/users/fbomb111/events{/privacy}","received_events_url":"https://api.github.com/users/fbomb111/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-23T03:12:16Z","updated_at":"2016-10-31T20:58:36Z","closed_at":"2016-10-31T20:58:36Z","body":"Using setFAIcon on a tabBarItem only sets the image, so the image goes missing when you select that tab item.  Adding selectedImage to the extension will fix the problem:\n\n```\n`public extension UITabBarItem {\n\n    public func setFAIcon(icon: FAType) {\n        FontLoader.loadFontIfNeeded()\n        image = UIImage(icon: icon, size: CGSize(width: 30, height: 30))\n        selectedImage = UIImage(icon: icon, size: CGSize(width: 30, height: 30))\n    }\n}`\n```\n"}}
{"actor":{"display_login":"Vaberer"}}