2022-06-06 18:25:58 +04:00

26 lines
416 B
Swift

//
// AnimatorNodeDebugging.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/18/19.
//
import Foundation
extension AnimatorNode {
func printNodeTree() {
parentNode?.printNodeTree()
print(String(describing: type(of: self)))
if let group = self as? GroupNode {
print("* |Children")
group.rootNode?.printNodeTree()
print("*")
} else {
print("|")
}
}
}