{"action":"created","issue":{"url":"https://api.github.com/repos/Yalantis/Segmentio/issues/31","repository_url":"https://api.github.com/repos/Yalantis/Segmentio","labels_url":"https://api.github.com/repos/Yalantis/Segmentio/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/Yalantis/Segmentio/issues/31/comments","events_url":"https://api.github.com/repos/Yalantis/Segmentio/issues/31/events","html_url":"https://github.com/Yalantis/Segmentio/issues/31","id":194318643,"number":31,"title":"Changing state does not change label font and color, only background","user":{"login":"xergic","id":473025,"avatar_url":"https://avatars.githubusercontent.com/u/473025?v=3","gravatar_id":"","url":"https://api.github.com/users/xergic","html_url":"https://github.com/xergic","followers_url":"https://api.github.com/users/xergic/followers","following_url":"https://api.github.com/users/xergic/following{/other_user}","gists_url":"https://api.github.com/users/xergic/gists{/gist_id}","starred_url":"https://api.github.com/users/xergic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xergic/subscriptions","organizations_url":"https://api.github.com/users/xergic/orgs","repos_url":"https://api.github.com/users/xergic/repos","events_url":"https://api.github.com/users/xergic/events{/privacy}","received_events_url":"https://api.github.com/users/xergic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-08T12:02:26Z","updated_at":"2016-12-08T15:06:19Z","closed_at":null,"body":"# Report\r\n\r\n## Report a bug\r\n\r\n###  What did you do?\r\n\r\nSet up new project, added *Segmentio* pod, used code from Example with `.onlyLabel` and custom colors:\r\n\r\n        let font = UIFont.systemFont(ofSize: 14)\r\n        return SegmentioStates(\r\n            defaultState: segmentioState(\r\n                backgroundColor: .clear,\r\n                titleFont: font,\r\n                titleTextColor: .lightGray\r\n            ),\r\n            selectedState: segmentioState(\r\n                backgroundColor: .cyan,\r\n                titleFont: font,\r\n                titleTextColor: .blue\r\n            ),\r\n            highlightedState: segmentioState(\r\n                backgroundColor: .lightGray,\r\n                titleFont: font,\r\n                titleTextColor: .red\r\n            )\r\n        )\r\n\r\nExample does not work properly either.\r\n\r\n### What did you expect to happen?\r\n\r\nWhen switching state the selected item should change background color, text color and font.\r\n\r\n### What happened instead?\r\n\r\nSwitching state only changes background color. Indicator works correctly.\r\n\r\n### Your Environment\r\n\r\n- Version of the component: 2.1 from Cocoapods\r\n- Swift version: 3.0\r\n- iOS version: 10.1.1 / 10.1\r\n- Device: iPhone 6 / iOS Simulator\r\n- Xcode version: 8.1\r\n\r\n### Stack\r\n\r\n```\r\n   CocoaPods : 1.2.0.beta.1\r\n        Ruby : ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]\r\n    RubyGems : 2.0.14.1\r\n        Host : Mac OS X 10.12.1 (16B2657)\r\n       Xcode : 8.1 (8B62)\r\n         Git : git version 2.9.3 (Apple Git-75)\r\nRuby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib\r\nRepositories : master - https://github.com/CocoaPods/Specs.git @ 5f7c2c8d410e7a0cb8af5b4c1c9cf368f18ee6d8\r\n```\r\n\r\n### Installation Source\r\n\r\n```\r\nExecutable Path: /usr/local/bin/pod\r\n```\r\n\r\n### Plugins\r\n\r\n```\r\ncocoapods-deintegrate : 1.0.1\r\ncocoapods-plugins     : 1.0.0\r\ncocoapods-search      : 1.0.0\r\ncocoapods-stats       : 1.0.0\r\ncocoapods-trunk       : 1.1.1\r\ncocoapods-try         : 1.1.0\r\n```\r\n\r\n### Podfile\r\n\r\n```ruby\r\nplatform :ios, '9.0'\r\n\r\ntarget 'SegmentioTest' do\r\n  use_frameworks!\r\n\r\n  pod 'Segmentio', '~> 2.1'\r\n\r\nend\r\n```\r\n\r\nMy first guess was iOS10 cell prefetching in `collectionView` but then it should work in 9.3, yet it doesn't. Maybe some issues with text label rendering? I don't really know 😢 \r\n\r\nThanks for this great library!"},"comment":{"url":"https://api.github.com/repos/Yalantis/Segmentio/issues/comments/265762240","html_url":"https://github.com/Yalantis/Segmentio/issues/31#issuecomment-265762240","issue_url":"https://api.github.com/repos/Yalantis/Segmentio/issues/31","id":265762240,"user":{"login":"jarrillaga","id":11060950,"avatar_url":"https://avatars.githubusercontent.com/u/11060950?v=3","gravatar_id":"","url":"https://api.github.com/users/jarrillaga","html_url":"https://github.com/jarrillaga","followers_url":"https://api.github.com/users/jarrillaga/followers","following_url":"https://api.github.com/users/jarrillaga/following{/other_user}","gists_url":"https://api.github.com/users/jarrillaga/gists{/gist_id}","starred_url":"https://api.github.com/users/jarrillaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarrillaga/subscriptions","organizations_url":"https://api.github.com/users/jarrillaga/orgs","repos_url":"https://api.github.com/users/jarrillaga/repos","events_url":"https://api.github.com/users/jarrillaga/events{/privacy}","received_events_url":"https://api.github.com/users/jarrillaga/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T15:06:19Z","updated_at":"2016-12-08T15:06:19Z","body":"I have reproduced the issue... I´m sure that in in the previous version it was working. Please we need a hotfix :)"}}
{"actor":{"display_login":"jarrillaga"}}