| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // LNRoomSystemMessageCell.swift
- // Gami
- //
- // Created by OneeChan on 2026/3/11.
- //
- import Foundation
- import UIKit
- import SnapKit
- class LNRoomSystemMessageCell: UITableViewCell {
- private let contentLabel = UILabel()
-
- override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
- super.init(style: style, reuseIdentifier: reuseIdentifier)
-
- setupViews()
- }
-
- func update(_ message: LNRoomMessageItem) {
-
- }
-
- required init?(coder: NSCoder) {
- fatalError("init(coder:) has not been implemented")
- }
- }
- extension LNRoomSystemMessageCell {
- private func setupViews() {
- backgroundColor = .fill.withAlphaComponent(0.12)
- layer.cornerRadius = 12
-
- contentView.addSubview(contentLabel)
- contentLabel.snp.makeConstraints { make in
- make.horizontalEdges.equalToSuperview().inset(10)
- make.verticalEdges.equalToSuperview().inset(8)
- }
- }
- }
|