34 lines
736 B
Swift
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
|
|
}()
|
|
}
|