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

31 lines
552 B
Swift
Raw Normal View History

2025-10-09 10:29:35 +00:00
//
// CLLabel.swift
// Crush
//
// Created by Leon on 2025/8/17.
//
import UIKit
class CLLabel: UILabel{
convenience init() {
self.init(frame: .zero)
}
override init(frame: CGRect) {
super.init(frame: frame)
setupViews()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
private func setupViews() {
textColor = .white
setContentCompressionResistancePriority(UILayoutPriority(742), for: .horizontal)
}
}