{"action":"created","issue":{"url":"https://api.github.com/repos/Yalantis/Segmentio/issues/87","repository_url":"https://api.github.com/repos/Yalantis/Segmentio","labels_url":"https://api.github.com/repos/Yalantis/Segmentio/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/Yalantis/Segmentio/issues/87/comments","events_url":"https://api.github.com/repos/Yalantis/Segmentio/issues/87/events","html_url":"https://github.com/Yalantis/Segmentio/issues/87","id":297394532,"number":87,"title":"Can't see titles IOS10","user":{"login":"yatanadam","id":2598376,"avatar_url":"https://avatars1.githubusercontent.com/u/2598376?v=4","gravatar_id":"","url":"https://api.github.com/users/yatanadam","html_url":"https://github.com/yatanadam","followers_url":"https://api.github.com/users/yatanadam/followers","following_url":"https://api.github.com/users/yatanadam/following{/other_user}","gists_url":"https://api.github.com/users/yatanadam/gists{/gist_id}","starred_url":"https://api.github.com/users/yatanadam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yatanadam/subscriptions","organizations_url":"https://api.github.com/users/yatanadam/orgs","repos_url":"https://api.github.com/users/yatanadam/repos","events_url":"https://api.github.com/users/yatanadam/events{/privacy}","received_events_url":"https://api.github.com/users/yatanadam/received_events","type":"User","site_admin":false},"labels":[{"id":671551617,"url":"https://api.github.com/repos/Yalantis/Segmentio/labels/priority:%20medium","name":"priority: medium","color":"EDB220","default":false},{"id":671553460,"url":"https://api.github.com/repos/Yalantis/Segmentio/labels/status:%20queued","name":"status: queued","color":"B0D775","default":false},{"id":402597618,"url":"https://api.github.com/repos/Yalantis/Segmentio/labels/type:%20bug","name":"type: bug","color":"DD5143","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-15T10:26:40Z","updated_at":"2018-04-16T13:17:54Z","closed_at":null,"author_association":"NONE","body":"Hi \r\n\r\nThanks for awesome competent. \r\n\r\nMy error is; item titles of segments aren't seen for IOS10. But everything works well for IOS11.\r\n\r\n![screen shot 2018-02-15 at 13 23 20](https://user-images.githubusercontent.com/2598376/36251886-d420f8c2-1253-11e8-887e-f078180ed31a.png)\r\n\r\n`  \r\n\r\n    var segmentItems = [SegmentioItem]()\r\n    for item in orderedLocationList {\r\n      let segmentItem = SegmentioItem(title: item.location, image:nil)\r\n      segmentItems.append(segmentItem)\r\n    }\r\n \r\n    \r\n    let indicatorOptions =  SegmentioIndicatorOptions(type: .bottom, ratio: 1.0, height: 3.0, color: .focepGreenColor())\r\n    \r\n    let states = SegmentioStates(\r\n      defaultState: SegmentioState(\r\n        backgroundColor: .clear,\r\n        titleFont: UIFont.systemFont(ofSize: 15),\r\n        titleTextColor: .black\r\n      ),\r\n      selectedState: SegmentioState(\r\n        backgroundColor: .clear,\r\n        titleFont: UIFont.systemFont(ofSize: 15),\r\n        titleTextColor: .focepGreenColor()\r\n      ),\r\n      highlightedState: SegmentioState(\r\n        backgroundColor: .clear,\r\n        titleFont: UIFont.systemFont(ofSize: 15),\r\n        titleTextColor: .focepGreenColor()\r\n      )\r\n    )\r\n    \r\n    let  horizontalSeparatorOptions = SegmentioHorizontalSeparatorOptions(\r\n      type: SegmentioHorizontalSeparatorType.topAndBottom, // Top, Bottom, TopAndBottom\r\n      height: 0,\r\n      color: .gray\r\n    )\r\n    \r\n    locationSegmentedControl.setup(\r\n      content: segmentItems ,\r\n      style: SegmentioStyle.onlyLabel,\r\n      options: SegmentioOptions(backgroundColor: .white, segmentPosition: .fixed(maxVisibleItems: 3), scrollEnabled: false, indicatorOptions: indicatorOptions, horizontalSeparatorOptions:  horizontalSeparatorOptions , verticalSeparatorOptions: nil, imageContentMode: .center, labelTextAlignment: .center, labelTextNumberOfLines: 1, segmentStates:states, animationDuration: 0.25)\r\n    )\r\n    \r\n    locationSegmentedControl.valueDidChange = { segmentio, segmentIndex in\r\n      self.segmentedControlValueDidChange(segmentIndex: segmentIndex)\r\n    }\r\n`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Yalantis/Segmentio/issues/comments/381595908","html_url":"https://github.com/Yalantis/Segmentio/issues/87#issuecomment-381595908","issue_url":"https://api.github.com/repos/Yalantis/Segmentio/issues/87","id":381595908,"user":{"login":"gpizano","id":30923391,"avatar_url":"https://avatars2.githubusercontent.com/u/30923391?v=4","gravatar_id":"","url":"https://api.github.com/users/gpizano","html_url":"https://github.com/gpizano","followers_url":"https://api.github.com/users/gpizano/followers","following_url":"https://api.github.com/users/gpizano/following{/other_user}","gists_url":"https://api.github.com/users/gpizano/gists{/gist_id}","starred_url":"https://api.github.com/users/gpizano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpizano/subscriptions","organizations_url":"https://api.github.com/users/gpizano/orgs","repos_url":"https://api.github.com/users/gpizano/repos","events_url":"https://api.github.com/users/gpizano/events{/privacy}","received_events_url":"https://api.github.com/users/gpizano/received_events","type":"User","site_admin":false},"created_at":"2018-04-16T13:17:54Z","updated_at":"2018-04-16T13:17:54Z","author_association":"NONE","body":"also here, same issue.\r\nLoading from xib loads the control \"fine\" you can see  how it kinda scrolls up to the right position, but after selecting some tab, the labels scrolls down and are right under the bottom border.  I tried disabling in the xib \"safe areas\". also loading the segmented control on viewDidAppear. But nothing seems to help. "}}
{"actor":{"display_login":"gpizano"}}