         
         contentView.isUserInteractionEnabled = false
         addSubview(contentView)
-        contentView.snp.makeConstraints { (make) in
-            self.contentViewPins = make.edges.equalToSuperview().constraint
-        }
+        
+        contentView.translatesAutoresizingMaskIntoConstraints = false
+        contentViewLeading = contentView.leadingAnchor.constraint(equalTo: leadingAnchor)
+        contentViewTop = contentView.topAnchor.constraint(equalTo: topAnchor)
+        contentViewTrailing = trailingAnchor.constraint(equalTo: contentView.trailingAnchor)
+        contentViewBottom = bottomAnchor.constraint(equalTo: contentView.bottomAnchor)
+        NSLayoutConstraint.activate([contentViewLeading, contentViewTop, contentViewTrailing, contentViewBottom])
         
         performLayout(in: contentView)
     }

    // MARK: Properties
    
    private let contentView = UIView()
    private var contentViewPins: Constraint?

    public var contentInset: UIEdgeInsets = .zero {
        didSet {
            contentViewPins?.update(inset: contentInset)
        }
    }
    

//

import UIKit

open class BarButton: UIControl, LayoutPerformer {
    
