|
@@ -32,9 +32,7 @@ class PQCustomSwitchView: UIView {
|
|
|
itemBtn.tag = index + 1
|
|
|
itemBtn.setTitle(itemTitle, for: .normal)
|
|
|
itemBtn.setTitleColor(UIColor.hexColor(hexadecimal: "#959595"), for: .normal)
|
|
|
-
|
|
|
itemBtn.setTitleColor(UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue), for: .selected)
|
|
|
- itemBtn.setTitleColor(UIColor.hexColor(hexadecimal: "#3DC1C1"), for: .selected)
|
|
|
itemBtn.addTarget(self, action: #selector(btnClick(sender:)), for: .touchUpInside)
|
|
|
|
|
|
itemBtn.isSelected = index == (defaultIndex - 1)
|