Visual_Novel_iOS/crush/Crush/Src/Components/UI/Label/EPOptionFlagLabel.swift

27 lines
637 B
Swift
Raw Normal View History

2025-10-09 10:29:35 +00:00
//
// EPOptionFlagLabel.swift
// Crush
//
// Created by Leon on 2025/7/20.
//
import UIKit
class EPOptionFlagLabel: UILabel {
// MARK: - Initialization
override init(frame: CGRect) {
super.init(frame: frame)
font = CLSystemToken.font(token: .tls) // EPSystemToken.typography(.txtLabelS).font
text = "(\(NSLocalizedString("optional", comment: "")))"
setContentCompressionResistancePriority(.init(756), for: .horizontal)
textColor = .c.ctsn
}
@available(*, unavailable)
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}