title: Xcode won't autocomplete enums within a switch statement in Swift
body: <p>Hi I'm having a bit of a problem using enums within a switch statement. The issue is that Xcode won't autocomplete and bring up the enum cases despite me using the dot notation within the switch statement. </p>
  
  <p><a href="https://i.stack.imgur.com/CrMxU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CrMxU.png" alt="enter image description here"></a></p>
  
  <p>Ive tried writing out the keyword favDay after the case keyword  before the dot notation and it won't bring up the enum cases. Ive even tried switching on the Days type as well but it still won't autocomplete.</p>
  
  <p>Does anyone Know why this is happening? My macbook air is new and Ive had it for a month and Im using Xcode version 7.3.1</p>
  
  <p>I get the autocomplete help with the enums cases outside of the switch statement and it works perfectly fine however it won't work inside a switch statement. However If I use a function and then use the switch statement it works perfectly fine however not when I'm using the switch statement on its own.</p>
  
  <p><a href="https://i.stack.imgur.com/l87b4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l87b4.png" alt="enter image description here"></a></p>
  
  <p>Im getting confused as it seems like you can only use enums and switch statements within a function but then the apple documentation shows enums and switch statements together without the use of ay functions.</p>
  
  <p>Can anyone help me please its driving me mad. Have I accidentally changed a setting or something? It does this for all enums and switch statements that I've  tried to write that are not related to a function</p>
  
  <p>Thank You for your help</p>
  
  <p>Alia :)</p>