Skip to content

Commit

Permalink
fix build fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Juanpe committed Aug 23, 2021
1 parent 3708c0d commit 8e369c9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ extension SkeletonTreeNode where Base: UIView {
extension SkeletonTreeNode where Base: UIView {

var dictionaryRepresentation: [String: Any] {
let children = children
let skeletonableChildren = children

var nodeInfo: [String: Any] = [
"type": "\(type(of: base))",
"reference": "\(Unmanaged.passUnretained(base).toOpaque())",
"isSkeletonable": base.isSkeletonable
]

if !children.isEmpty {
nodeInfo["children"] = children.map { $0.dictionaryRepresentation }
if !skeletonableChildren.isEmpty {
nodeInfo["children"] = skeletonableChildren.map { $0.dictionaryRepresentation }
}

return nodeInfo
Expand Down

0 comments on commit 8e369c9

Please sign in to comment.