This file contains 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
import CoreMotion // Import CoreMotion (header) | |
// Class vars | |
var pitch = 0.0 | |
var attitude: CMAttitude? | |
var roll = 0.0 | |
var yaw = 0.0 | |
let motionManager = CMMotionManager() // Create motionManager instance | |