fix
杨锴
2024-08-23 adc2db9bb29e7f316c46b6de679db1522ffc9cc8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
//  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
    }
 
}