From f76fd7a9781b59a5e47f664541c81fa3dbbf9aaa Mon Sep 17 00:00:00 2001 From: Noah Shutty Date: Fri, 27 Jul 2018 23:06:30 -0700 Subject: [PATCH] iOS 11 Compatibility Replace ARWorldTrackingSessionConfiguration with ARWorldTrackingConfiguration, see e.g. https://github.com/markdaws/arkit-by-example/issues/7 --- ARKitCompassRose/ViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ARKitCompassRose/ViewController.swift b/ARKitCompassRose/ViewController.swift index b63e7db..66da8c2 100644 --- a/ARKitCompassRose/ViewController.swift +++ b/ARKitCompassRose/ViewController.swift @@ -33,7 +33,7 @@ class ViewController: UIViewController, ARSCNViewDelegate { override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) - let configuration = ARWorldTrackingSessionConfiguration() + let configuration = ARWorldTrackingConfiguration() // Align the real world on z(North-South) x(West-East) axis configuration.worldAlignment = .gravityAndHeading