//
|
// Home_Style_4_Inner_CCell.swift
|
// Pods
|
//
|
// Created by 无故事王国 on 2024/8/13.
|
//
|
|
import UIKit
|
|
class Home_Style_4_Inner_CCell: UICollectionViewCell {
|
|
@IBOutlet weak var view_text_bg: UIView!
|
override func awakeFromNib() {
|
super.awakeFromNib()
|
// Initialization code
|
|
|
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
|
}
|
|
}
|