//
//  EPOptionFlagLabel.swift

//
//  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")
    }
}
