ListCellItemData.swift 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // ListCellItemData.swift
  3. // TUIRoomKit
  4. //
  5. // Created by janejntang on 2023/1/6.
  6. // Copyright © 2023 Tencent. All rights reserved.
  7. //
  8. import Foundation
  9. class ListCellItemData {
  10. enum ListCellType {
  11. case resolutionType
  12. case frameRateType
  13. case hostNameType
  14. case normal
  15. }
  16. var type: ListCellType = .normal
  17. var size: CGSize?
  18. var backgroundColor: UIColor = .clear
  19. //UILabel configuration
  20. var titleText: String = ""
  21. var messageText: String = ""
  22. var titleColor: UIColor?
  23. var messageColor: UIColor?
  24. //UISwitch configuration
  25. var hasSwitch: Bool = false
  26. var isSwitchOn: Bool = false
  27. //UIButton configuration
  28. var hasRightButton: Bool = false
  29. var buttonData: ButtonItemData?
  30. //UISlider configuration
  31. var hasSliderLabel: Bool = false
  32. var hasSlider: Bool = false
  33. var minimumValue: Float = 0
  34. var maximumValue: Float = 100
  35. var sliderStep: Float = 1
  36. var sliderUnit: String = ""
  37. var sliderDefault: Float = 0
  38. var action: ((Any)->Void)?
  39. var hasOverAllAction: Bool = false
  40. var hasDownLineView: Bool = false
  41. }