     }
     
     
-
+    
 }
    //MARK: Properties
    */
    
    let rootNode: UIStackView = {
        let stackView = UIStackView()
        stackView.axis = .Vertical
        stackView.distribution = .FillEqually
        return stackView
        }()
    
    var tree = [TreeElement]()
    var views = [UIView]()
    var viewsToDisplay = [UIView]() {
        didSet {
            if viewsToDisplay.count >= 0 {
                buildTreeForNodeCount(viewsToDisplay.count)

    }
    
    
    private func getNodeCount() -> Int {
        var count = 0
        for element in tree where element.type == .Node {
            count++
