Commit 9c7966bd authored by Steven杜宇's avatar Steven杜宇

// tabUI

parent 39fa65c2
......@@ -30,12 +30,12 @@ class YHCommunityViewController: YHBaseViewController {
dataSource.titleNormalFont = UIFont.PFSC_M(ofSize: 15)
dataSource.titleNormalColor = UIColor(hex: 0xFFFFFF, alpha: 0.6)
dataSource.titleSelectedFont = UIFont.PFSC_M(ofSize: 18)
dataSource.titleSelectedFont = UIFont.PFSC_M(ofSize: 21)
dataSource.titleSelectedColor = .white
dataSource.isItemSpacingAverageEnabled = false
dataSource.itemWidth = JXSegmentedViewAutomaticDimension
dataSource.itemSpacing = 30
dataSource.itemSpacing = 24
return dataSource
}()
......@@ -157,6 +157,8 @@ class YHCommunityViewController: YHBaseViewController {
//配置指示器
let indicator = JXSegmentedIndicatorLineView()
indicator.indicatorWidth = 16
indicator.indicatorHeight = 2
indicator.indicatorCornerRadius = 0.0
indicator.indicatorColor = UIColor.white
segmentedView.indicators = [indicator]
segmentedView.defaultSelectedIndex = defaltIndex
......@@ -231,6 +233,8 @@ extension YHCommunityViewController: JXSegmentedViewDelegate {
segmentedDataSource.titleSelectedColor = .white
let indicator = JXSegmentedIndicatorLineView()
indicator.indicatorWidth = 16
indicator.indicatorHeight = 2
indicator.indicatorCornerRadius = 0.0
indicator.indicatorColor = UIColor.white
segmentedView.indicators = [indicator]
} else {
......@@ -240,6 +244,8 @@ extension YHCommunityViewController: JXSegmentedViewDelegate {
segmentedDataSource.titleSelectedColor = UIColor.mainTextColor
let indicator = JXSegmentedIndicatorLineView()
indicator.indicatorWidth = 16
indicator.indicatorHeight = 2
indicator.indicatorCornerRadius = 0.0
indicator.indicatorColor = UIColor.brandMainColor
segmentedView.indicators = [indicator]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment