In Swift, the switch/case statement must contain a default case, otherwise you'll get the following compiler error:
Switch must be exhaustive, consider adding a default clause
We used to put a non-sensical log statement in there, but today, a colleague found out that you can use the break keyword.
Example:
switch (self.type!.integerValue) {
case CustomerTypeNormal.integerValue:
name = "\(self.lastname?.lowercaseString.capitalizedString), \(self.firstname?.lowercaseString.capitalizedString)"
case CustomerTypeCrew.integerValue:
name = "Crew"
case CustomerTypeAnonymous.integerValue:
name = "Anonymous"
default:
break
}