title: CoreMotion Gyroscope apple watch
body: <p>I'm trying to get access to the gyroscope of the apple watch. From what I read it is available in watchos 3. Unfortunately I cannot get it to work. It keeps coming back with "Gyro not available" so motionManager.isGyroAvailable is always false. Here is my code. Any help would be appreciated. </p>
  
  <pre><code>import WatchKit
  import Foundation
  import CoreMotion
  
  
  
  class InterfaceController: WKInterfaceController {
  
      let motionManager = CMMotionManager()
  
      override func awake(withContext context: Any?) {
      super.awake(withContext: context)
  
      motionManager.gyroUpdateInterval = 0.1
  
      motionManager.accelerometerUpdateInterval = 0.1
      // Configure interface objects here.
  }
  
  override func willActivate() {
      // This method is called when watch view controller is about to be visible to user
      super.willActivate()
      if (motionManager.isGyroAvailable == true) {
          motionManager.startGyroUpdates(to: OperationQueue.current!, withHandler: { (data, error) -&gt; Void in
              guard let data = data else { return }
              let rotationX = data.rotationRate.x
              let rotationY = data.rotationRate.y
              let rotationZ = data.rotationRate.z
              // do you want to want to do with the data
              print(rotationX)
              print(rotationY)
              print(rotationZ)
          })
      } else {
          print("Gyro not available")
      }
  </code></pre>