// // RoomVC.swift // yinmeng-ios // // Created by duoban on 2024/3/6. // import UIKit class RoomVC: BaseViewController, HiddenNavigationBarProtocol { override func viewDidLoad() { super.viewDidLoad() setUILayout() } private func setUILayout(){ view.addSubview(backgroundView) view.addSubview(topView) view.addSubview(micSeatView) view.addSubview(chatScreenView) backgroundView.snp.makeConstraints { make in make.edges.equalTo(self.view) } topView.snp.makeConstraints { make in make.leading.trailing.top.equalTo(self.view) make.height.equalTo(UIDevice.scaleWidth(width: NavHeight)) } micSeatView.snp.makeConstraints { make in make.leading.trailing.equalTo(self.view) make.top.equalTo(self.topView.snp.bottom).offset(UIDevice.scaleWidth(width: 30)) make.height.equalTo(UIDevice.scaleWidth(width: 340)) } chatScreenView.snp.makeConstraints { make in make.top.equalTo(micSeatView.snp.bottom).offset(UIDevice.scaleWidth(width: 5)) make.leading.equalTo(UIDevice.scaleWidth(width: 0)) make.trailing.equalTo(-UIDevice.scaleWidth(width: 90)) make.bottom.equalTo(-UIDevice.scaleWidth(width: 0)) } } private func requestData(){ } //MARK: - 懒加载 private lazy var backgroundView:RoomBackgroundView = { let _backgroundView = RoomBackgroundView(frame: .zero) return _backgroundView }() private lazy var topView:RoomTopView = { let _topView = RoomTopView(frame: .zero) return _topView }() private lazy var micSeatView:MicSeatSuperView = { let _micSeatView = NormalMicSeatSuperView(frame: .zero) return _micSeatView }() private lazy var chatScreenView:RoomChatScreenView = { let _chatScreenView = RoomChatScreenView(frame: .zero) return _chatScreenView }() }