Visual_Novel_iOS/crush/Crush/Src/Components/UI/PagingView/CLSegmentedViews.swift

31 lines
617 B
Swift
Raw Normal View History

2025-10-09 10:29:35 +00:00
//
// 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
}
}