| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // LNNewVersionView.swift
- // Lanu
- //
- // Created by OneeChan on 2026/1/4.
- //
- import Foundation
- import UIKit
- import SnapKit
- class LNNewVersionView: UIView {
- override init(frame: CGRect) {
- super.init(frame: frame)
-
- let background = UIImageView()
- background.layer.cornerRadius = 8
- background.image = .primary_7
- background.clipsToBounds = true
- background.isUserInteractionEnabled = false
- addSubview(background)
- background.snp.makeConstraints { make in
- make.edges.equalToSuperview()
- make.height.equalTo(16)
- }
-
- let newLabel = UILabel()
- newLabel.font = .body_s
- newLabel.textColor = .text_1
- newLabel.text = .init(key: "New")
- addSubview(newLabel)
- newLabel.snp.makeConstraints { make in
- make.center.equalToSuperview()
- make.leading.equalToSuperview().offset(7)
- }
- }
-
- required init?(coder: NSCoder) {
- fatalError("init(coder:) has not been implemented")
- }
- }
|