     return NSLayoutConstraint(item: view1, attribute: NSLayoutAttribute.Leading, relatedBy: NSLayoutRelation.Equal, toItem: relatedTo.view2, attribute: NSLayoutAttribute.Trailing, multiplier: 1, constant: relatedTo.constant)
 }
 
+func ><> (view1:UIView,relatedTo:(view2:UIView,constant:CGFloat,relation:NSLayoutRelation)) -> NSLayoutConstraint{
+    return NSLayoutConstraint(item: view1, attribute: NSLayoutAttribute.Leading, relatedBy: relatedTo.relation, toItem: relatedTo.view2, attribute: NSLayoutAttribute.Trailing, multiplier: 1, constant: relatedTo.constant)
+}
+
 //TRAILING HORIZONTAL SPACE
-func <>> (view1:UIView,relatedTo:(view2:UIView,constant:CGFloat)) -> NSLayoutConstraint{
+func <>< (view1:UIView,relatedTo:(view2:UIView,constant:CGFloat)) -> NSLayoutConstraint{
     return NSLayoutConstraint(item: view1, attribute: NSLayoutAttribute.Trailing, relatedBy: NSLayoutRelation.Equal, toItem: relatedTo.view2, attribute: NSLayoutAttribute.Leading, multiplier: 1, constant: relatedTo.constant)
+}
+
+func <>< (view1:UIView,relatedTo:(view2:UIView,constant:CGFloat,relation:NSLayoutRelation)) -> NSLayoutConstraint{
+    return NSLayoutConstraint(item: view1, attribute: NSLayoutAttribute.Trailing, relatedBy: relatedTo.relation, toItem: relatedTo.view2, attribute: NSLayoutAttribute.Leading, multiplier: 1, constant: relatedTo.constant)
 }
 
 //LEADING VERTICAL SPACE

    return NSLayoutConstraint(item: view1, attribute: NSLayoutAttribute.Top, relatedBy: NSLayoutRelation.Equal, toItem: relatedTo.view2, attribute: NSLayoutAttribute.Bottom, multiplier: 1, constant: relatedTo.constant)
}

//TRAILING VERTICAL SPACE
func *<>< (view1:UIView,relatedTo:(view2:UIView,constant:CGFloat)) -> NSLayoutConstraint{
    return NSLayoutConstraint(item: view1, attribute: NSLayoutAttribute.Bottom, relatedBy: NSLayoutRelation.Equal, toItem: relatedTo.view2, attribute: NSLayoutAttribute.Top, multiplier: 1, constant: relatedTo.constant)
}


infix operator ><> {}

infix operator <>< {}

infix operator *><> {}

