//
//  EPHighlightBorderButton.swift

//
//  Created by Leon on 2025/7/20.
//

import UIKit

class EPHighlightBorderButton: UIButton {
    // MARK: - Initialization
    override init(frame: CGRect) {
        super.init(frame: frame)
        layer.borderColor = UIColor.c.cpvp.cgColor
    }
    
    @available(*, unavailable)
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    // MARK: - Overrides
    override var isHighlighted: Bool {
        didSet {
            layer.borderWidth = isHighlighted ? CLSystemToken.border(token: .bs) : 0
        }
    }
}
