     internal func displayLayoutWarnings() {
         if let justify = justify {
             func context() -> String { return "justify(.\(justify))" }
-            if !((_left != nil && _right != nil) || (shouldPinEdges && width != nil && (_left != nil || _right != nil || _hCenter != nil))) {
+            if !((_left != nil && _right != nil) || (shouldPinEdges && _width != nil && (_left != nil || _right != nil || _hCenter != nil))) {
                 warn("the left and right coordinates must be set to justify the view horizontally.", context)
             }
             

        
        if let align = align {
            func context() -> String { return "align(.\(align))" }
            if !((_top != nil && _bottom != nil) || (shouldPinEdges && height != nil && (_top != nil || _bottom != nil || _vCenter != nil))) {
                warn("the top and bottom coordinates must be set to align the view vertically.", context)
            }
            

    }
    
    internal func displayWarning(_ text: String) {
        var displayText = "\n👉 \(text)"
        
        let viewType = "\(type(of: view))"
        displayText += "\n   (View type: \(viewType), Frame: \(view.frame)"
        
        var currentView = view
        var hierarchy: [String] = []
        while let parent = currentView.superview {
            hierarchy.insert("\(type(of: parent))", at: 0)
            currentView = parent
        }
        if hierarchy.count > 0 {
            displayText += ", Superviews: \(hierarchy.flatMap({ $0 }).joined(separator: " -> "))"
        }
        
        displayText += ", Tag: \(view.tag))\n"
        
        print(displayText)
        _pinlayoutUnitTestLastWarning = text
    }
    
