Commit a12cee91 authored by pete谢兆麟's avatar pete谢兆麟

我的足迹样式修改

parent be82de57
......@@ -25,15 +25,13 @@ class YHMyLikeActivityViewController: YHBaseViewController {
let dataSource = JXSegmentedTitleDataSource()
dataSource.titles = arrItemTitles
dataSource.titleNormalFont = UIFont.PFSC_R(ofSize: 14)
dataSource.titleSelectedColor = UIColor.labelTextColor2
dataSource.titleNormalFont = UIFont.PFSC_M(ofSize: 14)
dataSource.titleNormalColor = .labelTextColor2
dataSource.titleSelectedFont = UIFont.PFSC_M(ofSize: 14)
dataSource.titleSelectedColor = UIColor.white
dataSource.isTitleMaskEnabled = true
dataSource.isItemSpacingAverageEnabled = false
dataSource.titleSelectedColor = .mainTextColor
dataSource.isItemSpacingAverageEnabled = true
dataSource.itemWidth = JXSegmentedViewAutomaticDimension
dataSource.itemSpacing = 60
return dataSource
}()
......@@ -74,9 +72,10 @@ class YHMyLikeActivityViewController: YHBaseViewController {
segmentedView.delegate = self
//配置指示器
let indicator = JXSegmentedIndicatorBackgroundView()
let indicator = JXSegmentedIndicatorLineView()
indicator.indicatorWidth = 16
indicator.indicatorColor = UIColor.brandMainColor
indicator.indicatorHeight = 32
indicator.indicatorCornerRadius = 0
segmentedView.indicators = [indicator]
segmentedView.defaultSelectedIndex = self.myDefaultNavItemIndex
......
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