depth

val ViewHierarchyElement.depth: Int

Extension to calculate the depth of the element