浏览代码

VLCEditToolbar: Add background to base view

This fixes the toolbar not having a background color on the first
appearance.
Soomin Lee 6 年之前
父节点
当前提交
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()
     }