         let trailingAttribute:NSLayoutAttribute = relativeToMargin.right ? .TrailingMargin : .Trailing
         
         constraints.append(NSLayoutConstraint(item:view1,
-            attribute:topAttribute,
+            attribute:.Top,
             relatedBy:.Equal,
             toItem:view2,
             attribute:topAttribute,

            constant:insets.top))
        
        constraints.append(NSLayoutConstraint(item:view1,
            attribute:leadingAttribute,
            relatedBy:.Equal,
            toItem:view2,
            attribute:leadingAttribute,

            constant:insets.left))
        
        constraints.append(NSLayoutConstraint(item:view1,
            attribute:.Bottom,
            relatedBy:.Equal,
            toItem:view2,
            attribute:bottomAttribute,
