1 // 2 // AnimatorNodeDebugging.swift 3 // lottie-swift 4 // 5 // Created by Brandon Withrow on 1/18/19. 6 // 7 8 import Foundation 9 10 extension AnimatorNode { 11 printNodeTreenull12 func printNodeTree() { 13 parentNode?.printNodeTree() 14 print(String(describing: type(of: self))) 15 16 if let group = self as? GroupNode { 17 print("* |Children") 18 group.rootNode?.printNodeTree() 19 print("*") 20 } else { 21 print("|") 22 } 23 } 24 25 } 26