     
 }
 
+

        closeButton.translatesAutoresizingMaskIntoConstraints = false
        addSubview(closeButton)
        
        let views: [String: Any] = ["backButton": backButton, "closeButton": closeButton]
        
        let lcs1 = NSLayoutConstraint.constraints(withVisualFormat: "H:|-[backButton]-(>=8)-[closeButton]-|", options: [.directionLeadingToTrailing, .alignAllCenterY], metrics: nil, views: views)
        let lcs2 = NSLayoutConstraint.init(item: backButton, attribute: .centerY, relatedBy: .equal, toItem: self, attribute: .centerY, multiplier: 1.0, constant: 0)
        addConstraints(lcs1)
        addConstraint(lcs2)
    }
    
    required init?(coder aDecoder: NSCoder) {


class CustomNavigationBarBackView: UIView {
    
    private class Button: UIButton {
        override func setTitle(_ title: String?, for state: UIControlState) {
            super.setTitle(title, for: state)
            superview?.setNeedsLayout()
        }
        
        override func setImage(_ image: UIImage?, for state: UIControlState) {
            super.setImage(image, for: state)
            superview?.setNeedsLayout()
        }
    }
    
    let backButton: UIButton = Button.init(type: .system)
    let closeButton: UIButton = Button.init(type: .system)
    
    override init(frame: CGRect) {
        super.init(frame: frame)
