Browse Source

no message

南鑫林 5 years ago
parent
commit
b57f40b6b0

+ 9 - 0
RainbowPlanet/RainbowPlanet/Modules/CommunityModule/Community/View/Cell/CardContent/PicVideo/CardContentPicVideoCollectionViewCell.swift

@@ -39,12 +39,16 @@ class CardContentPicVideoCollectionViewCell: UICollectionViewCell {
         self.cornerRadius = 2
         self.masksToBounds = true
         addSubview(iconImageView)
+        addSubview(pauseImageView)
     }
     
     private func setupLayouts() {
         iconImageView.snp_makeConstraints { (make) in
             make.edges.equalToSuperview()
         }
+        pauseImageView.snp_makeConstraints { (make) in
+            make.center.equalToSuperview()
+        }
     }
     
     private lazy var iconImageView: UIImageView = {
@@ -53,5 +57,10 @@ class CardContentPicVideoCollectionViewCell: UICollectionViewCell {
         return iconImageView
     }()
     
+    private lazy var pauseImageView: UIImageView = {
+        let pauseImageView = UIImageView.init(image: kImage(name: "btn_pause"))
+        return pauseImageView
+    }()
+    
     
 }

+ 22 - 0
RainbowPlanet/RainbowPlanet/Supporting Files/CommunityModule.xcassets/btn_pause.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "btn_pause@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "btn_pause@3x.png",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

BIN
RainbowPlanet/RainbowPlanet/Supporting Files/CommunityModule.xcassets/btn_pause.imageset/btn_pause@2x.png


BIN
RainbowPlanet/RainbowPlanet/Supporting Files/CommunityModule.xcassets/btn_pause.imageset/btn_pause@3x.png