|
@@ -30,6 +30,9 @@ class BFSubtitleSettingView: UIView {
|
|
|
|
|
|
// 样式配置
|
|
|
var styleConfig: [Int: [String: Any]] = Dictionary()
|
|
|
+
|
|
|
+ //操作板背景
|
|
|
+ let backView = UIButton()
|
|
|
|
|
|
override init(frame: CGRect) {
|
|
|
super.init(frame: frame)
|
|
@@ -37,7 +40,6 @@ class BFSubtitleSettingView: UIView {
|
|
|
backgroundColor = UIColor.clear
|
|
|
addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(hidden)))
|
|
|
|
|
|
- let backView = UIButton()
|
|
|
backView.backgroundColor = .black
|
|
|
|
|
|
addSubview(backView)
|
|
@@ -47,6 +49,7 @@ class BFSubtitleSettingView: UIView {
|
|
|
make.width.equalTo(cScreenWidth)
|
|
|
make.height.equalTo(220)
|
|
|
}
|
|
|
+ backView.setNeedsUpdateConstraints()
|
|
|
|
|
|
styleConfig = [0: ["fontColor": UIColor.hexColor(hexadecimal: "#FFCF53"), "backgroundColor": UIColor.clear, "strokeColor": UIColor.black, "backgroundAlpha": 0.0],
|
|
|
1: ["fontColor": UIColor.hexColor(hexadecimal: "#FF9292"), "backgroundColor": UIColor.clear, "strokeColor": UIColor.black, "backgroundAlpha": 0.0],
|
|
@@ -186,10 +189,12 @@ class BFSubtitleSettingView: UIView {
|
|
|
make.right.equalToSuperview().offset(-18)
|
|
|
make.top.equalTo(line.snp.top).offset(13)
|
|
|
}
|
|
|
-
|
|
|
- // addCorner(roundingCorners: .topLeft, corner: 10)
|
|
|
- // addCorner(roundingCorners: .topRight, corner: 10)
|
|
|
- BFLog(message: "")
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ override func layoutSubviews() {
|
|
|
+ super.layoutSubviews()
|
|
|
+ self.backView.addCorner(roundingCorners: [.topLeft, .topRight], corner: 10)
|
|
|
}
|
|
|
|
|
|
@objc func hidden() {
|