Просмотр исходного кода

VLCEditToolbar: Add background to base view

This fixes the toolbar not having a background color on the first
appearance.
Soomin Lee 6 лет назад
Родитель
Сommit
cc17067a4d
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      Sources/VLCEditToolbar.swift

+ 5 - 0
Sources/VLCEditToolbar.swift

@@ -88,9 +88,14 @@ class VLCEditToolbar: UIView {
             ])
     }
 
+    private func setupView() {
+        backgroundColor = PresentationTheme.current.colors.background
+    }
+
     init(category: MediaLibraryBaseModel) {
         self.category = category
         super.init(frame: .zero)
+        setupView()
         setupStackView()
     }