|
@@ -17,6 +17,12 @@ open class BFImageCoverViewCell: UICollectionViewCell {
|
|
|
let playView = GPUImageView(frame: bounds)
|
|
|
return playView
|
|
|
}()
|
|
|
+
|
|
|
+ lazy var playBtn:UIButton = {
|
|
|
+ let btn = UIButton()
|
|
|
+ btn.addTarget(self, action: #selector(btnClick(sender:)), for: .touchUpInside)
|
|
|
+ return btn
|
|
|
+ }()
|
|
|
|
|
|
lazy var filter: GPUImageFilter = {
|
|
|
let filter = GPUImageFilter()
|
|
@@ -42,6 +48,7 @@ open class BFImageCoverViewCell: UICollectionViewCell {
|
|
|
override public init(frame: CGRect) {
|
|
|
super.init(frame: frame)
|
|
|
contentView.addSubview(playView)
|
|
|
+ contentView.addSubview(playBtn)
|
|
|
}
|
|
|
|
|
|
public required init?(coder _: NSCoder) {
|
|
@@ -69,6 +76,11 @@ open class BFImageCoverViewCell: UICollectionViewCell {
|
|
|
|
|
|
public func addLayout() {
|
|
|
playView.frame = contentView.bounds
|
|
|
+ playBtn.snp.makeConstraints { make in
|
|
|
+ make.left.right.equalToSuperview()
|
|
|
+ make.top.equalTo(cDevice_iPhoneNavBarAndStatusBarHei)
|
|
|
+ make.bottom.equalTo(-218)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@objc func btnClick(sender: UIButton) {
|