|
@@ -190,7 +190,10 @@ class BFSubtitleSettingView: UIView {
|
|
make.right.equalToSuperview().offset(-18)
|
|
make.right.equalToSuperview().offset(-18)
|
|
make.top.equalTo(line.snp.top).offset(13)
|
|
make.top.equalTo(line.snp.top).offset(13)
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ if #available(iOS 13.0, *) { disabeSwitch.subviews.first?.subviews.first?.backgroundColor = UIColor.hexColor(hexadecimal: "#393939") } else if #available(iOS 12.0, *) { disabeSwitch.subviews.first?.subviews.first?.subviews.first?.backgroundColor = UIColor.hexColor(hexadecimal: "#393939") }
|
|
|
|
+ disabeSwitch.onTintColor = UIColor.hexColor(hexadecimal: "#393939")
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
override func layoutSubviews() {
|
|
override func layoutSubviews() {
|
|
@@ -278,7 +281,7 @@ class BFSubtitleSettingView: UIView {
|
|
print("字幕开关状态\(uiswitch.isOn)")
|
|
print("字幕开关状态\(uiswitch.isOn)")
|
|
|
|
|
|
subtitle.setting.subtitleIsShow = !uiswitch.isOn
|
|
subtitle.setting.subtitleIsShow = !uiswitch.isOn
|
|
-
|
|
|
|
|
|
+ uiswitch.thumbTintColor = !uiswitch.isOn ? UIColor.white : UIColor.hexColor(hexadecimal: "#389AFF")
|
|
if subtitleSettingCallBack != nil {
|
|
if subtitleSettingCallBack != nil {
|
|
subtitleSettingCallBack!(subtitle)
|
|
subtitleSettingCallBack!(subtitle)
|
|
}
|
|
}
|