31 lines
617 B
Swift
31 lines
617 B
Swift
|
|
//
|
||
|
|
// CLSegmentedView.swift
|
||
|
|
// Crush
|
||
|
|
//
|
||
|
|
// Created by Leon on 2025/7/15.
|
||
|
|
//
|
||
|
|
|
||
|
|
import Foundation
|
||
|
|
import JXSegmentedView
|
||
|
|
|
||
|
|
// Style
|
||
|
|
|
||
|
|
extension JXSegmentedTitleDataSource{
|
||
|
|
func clStyle(){
|
||
|
|
titleNormalFont = .systemFont(ofSize: 14)
|
||
|
|
titleSelectedFont = .boldSystemFont(ofSize: 14)
|
||
|
|
titleNormalColor = .gray
|
||
|
|
titleSelectedColor = .white
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
extension JXSegmentedIndicatorLineView{
|
||
|
|
func clStyle(){
|
||
|
|
indicatorWidth = JXSegmentedViewAutomaticDimension
|
||
|
|
indicatorWidth = 20
|
||
|
|
indicatorHeight = 2
|
||
|
|
indicatorColor = .orange
|
||
|
|
verticalOffset = 8
|
||
|
|
}
|
||
|
|
}
|