Skip to content

Instantly share code, notes, and snippets.

@timcowlishaw
Last active March 1, 2022 17:12
Show Gist options
  • Save timcowlishaw/f807c45b529c71c781f7a6144c8fe148 to your computer and use it in GitHub Desktop.
Save timcowlishaw/f807c45b529c71c781f7a6144c8fe148 to your computer and use it in GitHub Desktop.
Cenatus Apple Phase blogpost snippet 1
// ARViewController.swift
import PHASE
// [ other imports elided ]
class ViewController : UIViewController {
var phaseEngine : PHASEEngine!
override func viewDidLoad() {
super.viewDidLoad();
self.phaseEngine = PhaseEngine(updateMode: .automatic);
self.phaseEngine.start();
// [ method body elided ]
}
// [ class body elided ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment