{"action":"created","issue":{"url":"https://api.github.com/repos/mustafaibrahim989/MIBadgeButton-Swift/issues/5","labels_url":"https://api.github.com/repos/mustafaibrahim989/MIBadgeButton-Swift/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/mustafaibrahim989/MIBadgeButton-Swift/issues/5/comments","events_url":"https://api.github.com/repos/mustafaibrahim989/MIBadgeButton-Swift/issues/5/events","html_url":"https://github.com/mustafaibrahim989/MIBadgeButton-Swift/issues/5","id":111584236,"number":5,"title":"How to use it for navigation bar button item?","user":{"login":"sourabhsharmait","id":12099495,"avatar_url":"https://avatars.githubusercontent.com/u/12099495?v=3","gravatar_id":"","url":"https://api.github.com/users/sourabhsharmait","html_url":"https://github.com/sourabhsharmait","followers_url":"https://api.github.com/users/sourabhsharmait/followers","following_url":"https://api.github.com/users/sourabhsharmait/following{/other_user}","gists_url":"https://api.github.com/users/sourabhsharmait/gists{/gist_id}","starred_url":"https://api.github.com/users/sourabhsharmait/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourabhsharmait/subscriptions","organizations_url":"https://api.github.com/users/sourabhsharmait/orgs","repos_url":"https://api.github.com/users/sourabhsharmait/repos","events_url":"https://api.github.com/users/sourabhsharmait/events{/privacy}","received_events_url":"https://api.github.com/users/sourabhsharmait/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-15T10:02:59Z","updated_at":"2015-10-15T12:01:47Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/mustafaibrahim989/MIBadgeButton-Swift/issues/comments/148366261","html_url":"https://github.com/mustafaibrahim989/MIBadgeButton-Swift/issues/5#issuecomment-148366261","issue_url":"https://api.github.com/repos/mustafaibrahim989/MIBadgeButton-Swift/issues/5","id":148366261,"user":{"login":"mustafaibrahim989","id":1499047,"avatar_url":"https://avatars.githubusercontent.com/u/1499047?v=3","gravatar_id":"","url":"https://api.github.com/users/mustafaibrahim989","html_url":"https://github.com/mustafaibrahim989","followers_url":"https://api.github.com/users/mustafaibrahim989/followers","following_url":"https://api.github.com/users/mustafaibrahim989/following{/other_user}","gists_url":"https://api.github.com/users/mustafaibrahim989/gists{/gist_id}","starred_url":"https://api.github.com/users/mustafaibrahim989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mustafaibrahim989/subscriptions","organizations_url":"https://api.github.com/users/mustafaibrahim989/orgs","repos_url":"https://api.github.com/users/mustafaibrahim989/repos","events_url":"https://api.github.com/users/mustafaibrahim989/events{/privacy}","received_events_url":"https://api.github.com/users/mustafaibrahim989/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T12:01:47Z","updated_at":"2015-10-15T12:01:47Z","body":"```Swift\r\n        let button = MIBadgeButton(type: .Custom)\r\n        button.badgeString = \"19\"\r\n        button.frame = CGRectMake(0, 0, 70, 40)\r\n        button.badgeEdgeInsets = UIEdgeInsetsMake(10, 0, 0, 15)\r\n        button.setTitle(\"edit\", forState: .Normal)\r\n        button.setTitleColor(UIColor.orangeColor(), forState: .Normal)\r\n        let barButton = UIBarButtonItem(customView: button)\r\n```"}}