LNRoomSystemMessageCell.swift 997 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // LNRoomSystemMessageCell.swift
  3. // Gami
  4. //
  5. // Created by OneeChan on 2026/3/11.
  6. //
  7. import Foundation
  8. import UIKit
  9. import SnapKit
  10. class LNRoomSystemMessageCell: UITableViewCell {
  11. private let contentLabel = UILabel()
  12. override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
  13. super.init(style: style, reuseIdentifier: reuseIdentifier)
  14. setupViews()
  15. }
  16. func update(_ message: LNRoomMessageItem) {
  17. }
  18. required init?(coder: NSCoder) {
  19. fatalError("init(coder:) has not been implemented")
  20. }
  21. }
  22. extension LNRoomSystemMessageCell {
  23. private func setupViews() {
  24. backgroundColor = .fill.withAlphaComponent(0.12)
  25. layer.cornerRadius = 12
  26. contentView.addSubview(contentLabel)
  27. contentLabel.snp.makeConstraints { make in
  28. make.horizontalEdges.equalToSuperview().inset(10)
  29. make.verticalEdges.equalToSuperview().inset(8)
  30. }
  31. }
  32. }