Bladeren bron

MovieCollectionViewCell: Add corner radius

Add corner radius according to design
Soomin Lee 5 jaren geleden
bovenliggende
commit
185f48f1c4
1 gewijzigde bestanden met toevoegingen van 4 en 0 verwijderingen
  1. 4 0
      Sources/MediaCategoryCells/MovieCollectionViewCell.swift

+ 4 - 0
Sources/MediaCategoryCells/MovieCollectionViewCell.swift

@@ -45,6 +45,10 @@ class MovieCollectionViewCell: BaseCollectionViewCell {
         if #available(iOS 11.0, *) {
             thumbnailView.accessibilityIgnoresInvertColors = true
         }
+
+        clipsToBounds = true
+        layer.cornerRadius = 2
+
         newLabel.text = NSLocalizedString("NEW", comment: "")
         newLabel.textColor = PresentationTheme.current.colors.orangeUI
         NotificationCenter.default.addObserver(self, selector: #selector(themeDidChange), name: .VLCThemeDidChangeNotification, object: nil)