Files
yingmeng-ios-switf/yinmeng-ios/Modules/Room/View/RoomBackgroundView/RoomBackgroundView.swift
2024-03-23 20:47:19 +08:00

34 lines
736 B
Swift

//
// RoomBackgroundView.swift
// yinmeng-ios
//
// Created by yinmeng on 2024/3/6.
//
import UIKit
class RoomBackgroundView: UIView {
override init(frame: CGRect) {
super.init(frame: frame)
setUILayout()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
private func setUILayout(){
addSubview(bgImageView)
bgImageView.snp.makeConstraints { make in
make.edges.equalTo(self)
}
}
//MARK: -
private lazy var bgImageView:UIImageView = {
let _bgImageView = UIImageView()
_bgImageView.image = UIImage(named: "yin_room_bg")
return _bgImageView
}()
}