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