From c80c87207a22e6018be50f668c1b88ed6ecd9970 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Wed, 14 Aug 2019 16:51:24 -0500 Subject: [PATCH] InfoLabel includes ARKit attached node count InfoLabel includes ARKit attached node count --- ARKit+CoreLocation/POIViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ARKit+CoreLocation/POIViewController.swift b/ARKit+CoreLocation/POIViewController.swift index 067849ed..19b66f95 100644 --- a/ARKit+CoreLocation/POIViewController.swift +++ b/ARKit+CoreLocation/POIViewController.swift @@ -301,7 +301,8 @@ extension POIViewController { let comp = Calendar.current.dateComponents([.hour, .minute, .second, .nanosecond], from: Date()) if let hour = comp.hour, let minute = comp.minute, let second = comp.second, let nanosecond = comp.nanosecond { - infoLabel.text!.append(" \(hour.short):\(minute.short):\(second.short):\(nanosecond.short3)") + let nodeCount = "\(sceneLocationView.sceneNode?.childNodes.count.description ?? "n/a") ARKit Nodes" + infoLabel.text!.append(" \(hour.short):\(minute.short):\(second.short):\(nanosecond.short3) • \(nodeCount)") } }