{"action":"created","issue":{"url":"https://api.github.com/repos/xmartlabs/XLPagerTabStrip/issues/160","repository_url":"https://api.github.com/repos/xmartlabs/XLPagerTabStrip","labels_url":"https://api.github.com/repos/xmartlabs/XLPagerTabStrip/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/xmartlabs/XLPagerTabStrip/issues/160/comments","events_url":"https://api.github.com/repos/xmartlabs/XLPagerTabStrip/issues/160/events","html_url":"https://github.com/xmartlabs/XLPagerTabStrip/issues/160","id":150766334,"number":160,"title":"How to use attributed string (NSAttributedString) for button bar view cells?","user":{"login":"ftvs","id":875561,"avatar_url":"https://avatars.githubusercontent.com/u/875561?v=3","gravatar_id":"","url":"https://api.github.com/users/ftvs","html_url":"https://github.com/ftvs","followers_url":"https://api.github.com/users/ftvs/followers","following_url":"https://api.github.com/users/ftvs/following{/other_user}","gists_url":"https://api.github.com/users/ftvs/gists{/gist_id}","starred_url":"https://api.github.com/users/ftvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftvs/subscriptions","organizations_url":"https://api.github.com/users/ftvs/orgs","repos_url":"https://api.github.com/users/ftvs/repos","events_url":"https://api.github.com/users/ftvs/events{/privacy}","received_events_url":"https://api.github.com/users/ftvs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-04-25T06:53:29Z","updated_at":"2016-09-05T11:56:41Z","closed_at":null,"body":"First, this is a great library. Thanks to all contributors.\r\n\r\nAs for the topic, is using NSAttributedString for the cell labels a supported feature? The source code appears to suggest otherwise. If not, is it a suitable feature for this library?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/xmartlabs/XLPagerTabStrip/issues/comments/244729665","html_url":"https://github.com/xmartlabs/XLPagerTabStrip/issues/160#issuecomment-244729665","issue_url":"https://api.github.com/repos/xmartlabs/XLPagerTabStrip/issues/160","id":244729665,"user":{"login":"ftvs","id":875561,"avatar_url":"https://avatars.githubusercontent.com/u/875561?v=3","gravatar_id":"","url":"https://api.github.com/users/ftvs","html_url":"https://github.com/ftvs","followers_url":"https://api.github.com/users/ftvs/followers","following_url":"https://api.github.com/users/ftvs/following{/other_user}","gists_url":"https://api.github.com/users/ftvs/gists{/gist_id}","starred_url":"https://api.github.com/users/ftvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftvs/subscriptions","organizations_url":"https://api.github.com/users/ftvs/orgs","repos_url":"https://api.github.com/users/ftvs/repos","events_url":"https://api.github.com/users/ftvs/events{/privacy}","received_events_url":"https://api.github.com/users/ftvs/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T11:56:41Z","updated_at":"2016-09-05T11:56:41Z","body":"This can be done in changeCurrentIndexProgressiveBlock or changeCurrentIndexBlock like so:\r\n\r\n`\r\n    buttonBarPagerTabStripViewController.changeCurrentIndexProgressiveBlock = ^(XLButtonBarViewCell *oldCell, XLButtonBarViewCell *newCell, CGFloat progressPercentage, BOOL indexWasChanged, BOOL fromCellRowAtIndex) {\r\n        NSNumber *trackingAmount = @(.5f);\r\n        \r\n        oldCell.label.attributedText\r\n            = (oldCell) ? [[NSAttributedString alloc] initWithString:oldCell.label.text\r\n                                              attributes:@{NSKernAttributeName: trackingAmount,\r\n                                                           NSForegroundColorAttributeName: [UIColor }] : nil;\r\n        newCell.label.attributedText\r\n            = (newCell) ? [[NSAttributedString alloc] initWithString:newCell.label.text\r\n                                              attributes:@{NSKernAttributeName: trackingAmount}] : nil;\r\n    };`"}}
{"actor":{"display_login":"ftvs"}}