I have an enum as below
enum LoginItems: Int {
case email = 0
case password
case login
static let numberOfItems = LoginItems.login.hashValue + 1
}
Previously in xcode 9.3 we were using swift 4.0 and it used to give proper value but now it gives the value as 5364119284923175996
which is totally wrong. Can someone tell me what is wrong with swift 4.1 or am I doing something wrong in the code.