From d894d8ecbc4e5e105d82a27a55e6928432315734 Mon Sep 17 00:00:00 2001 From: fuzzythecat Date: Tue, 31 Oct 2017 16:43:03 +0900 Subject: [PATCH] ARWorldTrackingSessionConfiguration is deprecated ARWorldTrackingSessionConfiguration is deprecated. Replacing ARWorldTrackingSessionConfiguration with ARWorldTrackingConfiguration gets rid of the Xcode issue. --- ARKitRectangleDetection/ViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ARKitRectangleDetection/ViewController.swift b/ARKitRectangleDetection/ViewController.swift index a19f416..c9df8d4 100644 --- a/ARKitRectangleDetection/ViewController.swift +++ b/ARKitRectangleDetection/ViewController.swift @@ -124,7 +124,7 @@ class ViewController: UIViewController, ARSCNViewDelegate, ARSessionDelegate { super.viewWillAppear(animated) // Create a session configuration - let configuration = ARWorldTrackingSessionConfiguration() + let configuration = ARWorldTrackingConfiguration() configuration.planeDetection = .horizontal // Run the view's session