//
|
// HomeRelaxBanner_2_CCell.swift
|
// XQMuse
|
//
|
// Created by 无故事王国 on 2024/8/14.
|
//
|
|
import UIKit
|
import JQTools
|
|
class HomeRelaxBanner_2_CCell: UICollectionViewCell {
|
|
@IBOutlet weak var view_text_bg: UIView!
|
override func awakeFromNib() {
|
super.awakeFromNib()
|
// Initialization code
|
|
|
jq_cornerRadius = 10
|
|
let blurEffect = UIBlurEffect(style: .light)
|
let visualEffectView = UIVisualEffectView(effect: blurEffect)
|
view_text_bg.addSubview(visualEffectView)
|
visualEffectView.snp.makeConstraints { make in
|
make.edges.equalToSuperview()
|
}
|
visualEffectView.alpha = 0.7
|
view_text_bg.sendSubviewToBack(visualEffectView)
|
visualEffectView.layer.masksToBounds = true
|
}
|
|
}
|