Difference between switch cases “@unknown default” and “default” in Swift 5
From SE-0192: Handling Future Enum Cases (emphasis mine): When switching over a non-frozen enum, the switch statement that matches against it must include a catch-all case (usually default or an “ignore” _ pattern). switch excuse { case .eatenByPet: // … case .thoughtItWasDueNextWeek: // … } Failure to do so will produce a warning in Swift … Read more