Created
August 22, 2017 01:54
-
-
Save TheNorthEestern/51794c20b5124a38e25e2558868f9b17 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ViewController: UIViewController, ARSCNViewDelegate { | |
// Rest of class code goes above here ... | |
func session(_ session: ARSession, cameraDidChangeTrackingState camera: ARCamera) { | |
var status = "Loading..." | |
switch camera.trackingState { | |
case .notAvailable: | |
status = "Not available" | |
case .limited(_): | |
status = "Analyzing..." | |
case .normal: | |
status = "Ready" | |
} | |
infoLabel.text = status | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment