{"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,"node_id":"MDU6SXNzdWUyOTczOTQ1MzI=","number":87,"title":"Can't see titles IOS10","user":{"login":"yatanadam","id":2598376,"node_id":"MDQ6VXNlcjI1OTgzNzY=","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,"node_id":"MDU6TGFiZWw2NzE1NTE2MTc=","url":"https://api.github.com/repos/Yalantis/Segmentio/labels/priority:%20medium","name":"priority: medium","color":"EDB220","default":false},{"id":671553460,"node_id":"MDU6TGFiZWw2NzE1NTM0NjA=","url":"https://api.github.com/repos/Yalantis/Segmentio/labels/status:%20queued","name":"status: queued","color":"B0D775","default":false},{"id":402597618,"node_id":"MDU6TGFiZWw0MDI1OTc2MTg=","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":8,"created_at":"2018-02-15T10:26:40Z","updated_at":"2018-07-26T09:12:13Z","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/408031985","html_url":"https://github.com/Yalantis/Segmentio/issues/87#issuecomment-408031985","issue_url":"https://api.github.com/repos/Yalantis/Segmentio/issues/87","id":408031985,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODAzMTk4NQ==","user":{"login":"damian-rzeszot","id":1994895,"node_id":"MDQ6VXNlcjE5OTQ4OTU=","avatar_url":"https://avatars3.githubusercontent.com/u/1994895?v=4","gravatar_id":"","url":"https://api.github.com/users/damian-rzeszot","html_url":"https://github.com/damian-rzeszot","followers_url":"https://api.github.com/users/damian-rzeszot/followers","following_url":"https://api.github.com/users/damian-rzeszot/following{/other_user}","gists_url":"https://api.github.com/users/damian-rzeszot/gists{/gist_id}","starred_url":"https://api.github.com/users/damian-rzeszot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damian-rzeszot/subscriptions","organizations_url":"https://api.github.com/users/damian-rzeszot/orgs","repos_url":"https://api.github.com/users/damian-rzeszot/repos","events_url":"https://api.github.com/users/damian-rzeszot/events{/privacy}","received_events_url":"https://api.github.com/users/damian-rzeszot/received_events","type":"User","site_admin":false},"created_at":"2018-07-26T09:12:13Z","updated_at":"2018-07-26T09:12:13Z","author_association":"NONE","body":"I get this error on console\r\n\r\n```\r\n2018-07-26 11:06:45.708 SDK Test App[20547:211414] the behavior of the UICollectionViewFlowLayout is not defined because:\r\n2018-07-26 11:06:45.708 SDK Test App[20547:211414] the item height must be less than the height of the UICollectionView minus the section insets top and bottom values, minus the content insets top and bottom values.\r\n2018-07-26 11:06:45.708 SDK Test App[20547:211414] Please check the values return by the delegate.\r\n2018-07-26 11:06:45.709 SDK Test App[20547:211414] The relevant UICollectionViewFlowLayout instance is <UICollectionViewFlowLayout: 0x7fe4c042e9c0>, and it is attached to <Segmentio.MyCollectionView: 0x7fe4c2091600; baseClass = UICollectionView; frame = (0 0; 414 54); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x7fe4c042f920>; layer = <CALayer: 0x7fe4bff08cb0>; contentOffset: {0, 0}; contentSize: {600, 54}> collection view layout: <UICollectionViewFlowLayout: 0x7fe4c042e9c0>.\r\n2018-07-26 11:06:45.709 SDK Test App[20547:211414] Make a symbolic breakpoint at UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger.\r\n```\r\n\r\nIt happens only in iOS 9 and 10. iOS 11 works fine.\r\nSeems that Segmentio's collection view gets extra 49pt bottom content inset.\r\nThat's because UIKit wants to use nice translucent bar for tab bar and navigation bar.\r\n\r\nTo fix that you need to disable `Adjust Scroll Views Insets`.\r\nI didn't check how to keep adjusted insets for all scroll views but not Segmentio's.\r\n\r\n<img width=\"261\" alt=\"screen shot 2018-07-26 at 11 05 16\" src=\"https://user-images.githubusercontent.com/1994895/43252902-e9300368-90c3-11e8-8e9c-514dd2af4d5c.png\">"}}
{"actor":{"display_login":"damian-rzeszot"}}