 
 public extension View {
     
-    public func setHugging(_ priority: ConstraintPriority, for axis: ConstraintAxis) {
-        setContentHuggingPriority(priority.value, for: axis)
-    }
-    
-    public func setCompressionResistance(_ priority: ConstraintPriority, for axis: ConstraintAxis) {
-        setContentCompressionResistancePriority(priority.value, for: axis)
+    public func setHugging(_ priority: LayoutPriority, for axis: ConstraintAxis) {
+        setContentHuggingPriority(priority, for: axis)
+    }
+    
+    public func setCompressionResistance(_ priority: LayoutPriority, for axis: ConstraintAxis) {
+        setContentCompressionResistancePriority(priority, for: axis)
     }
 }

    }
    
    @discardableResult
    public func trailingToLeading(of view: Constrainable, offset: CGFloat = 0, relation: ConstraintRelation = .equal, priority: ConstraintPriority = .required, isActive: Bool = true) -> Constraint {
        prepareForLayout()
        return trailing(to: view, view.leadingAnchor, offset: offset, relation: relation, priority: priority, isActive: isActive)
    }
    
    @discardableResult
    public func trailing(to view: Constrainable, _ anchor: NSLayoutXAxisAnchor? = nil, offset: CGFloat = 0, relation: ConstraintRelation = .equal, priority: ConstraintPriority = .required, isActive: Bool = true) -> Constraint {
        prepareForLayout()
        
        switch relation {

    }
    
    @discardableResult
    public func centerX(to view: Constrainable, _ anchor: NSLayoutXAxisAnchor? = nil, offset: CGFloat = 0, priority: LayoutPriority = .required, isActive: Bool = true) -> Constraint {
        prepareForLayout()
        
        let constraint = centerXAnchor.constraint(equalTo: anchor ?? view.centerXAnchor, constant: offset).with(priority)
