I think in Swift you could easily throw a fatal error:
func foo() {
fatalError("crash!")
}
It is actually even intended to use this feature in case something goes wrong in order to make the app crash.
To avoid an if statement in a special case, you could use `precondition`, too. It's similar to `assert`, makes thus the intention (if wanted) pretty clear and is _not_ removed in the final release as `assert`. It is used like `precondition(myBoolean, "This is a helpful error message for debugging.")`.