title: CBCentralManager iOS10 and iOS9
body: <p>So I'm migrating to iOS10 but I also need my code to run on iOS9. I'm using CoreBluetooth and CBCentralManagerDelegate. I can get my code to work for iOS10 however I need the fallback to work for iOS9 as well.</p>
  
  <pre><code>func centralManagerDidUpdateState(_ central: CBCentralManager) {
      if #available(iOS 10.0, *) {
          switch central.state{
          case CBManagerState.unauthorized:
              print("This app is not authorised to use Bluetooth low energy")
          case CBManagerState.poweredOff:
              print("Bluetooth is currently powered off.")
          case CBManagerState.poweredOn:
              print("Bluetooth is currently powered on and available to use.")
          default:break
          }
      } else {
  
          // Fallback on earlier versions
          switch central.state{
          case CBCentralManagerState.unauthorized:
              print("This app is not authorised to use Bluetooth low energy")
          case CBCentralManagerState.poweredOff:
              print("Bluetooth is currently powered off.")
          case CBCentralManagerState.poweredOn:
              print("Bluetooth is currently powered on and available to use.")
          default:break
          }
      }
  }
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code>Enum case 'unauthorized' is not a member of type 'CBManagerState'
  </code></pre>
  
  <p>On the line:</p>
  
  <pre><code>case CBCentralManagerState.unauthorized: 
  </code></pre>
  
  <p>As well as for .poweredOff and .poweredOn.</p>
  
  <p>Any ideas how I can get it to work in both cases?</p>