I have this code
import UIKit enum menuSituation{ case menuIsOpened case menuIsClosed } class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() var currentSituation = menuSituation.menuIsClosed switch(currentSituation){ //Here is the warning case .menuIsOpened: println("Menu is opened") break case .menuIsClosed: println("Menu is closed") break } } In the line where I start to define switch statement, it gives me the warning :
Switch condition evaluates to a constant
How can I get rid of this warning?