Switch
suggest changeParameters
| Parameter | Details |
|---|---|
| Value to test | The value to compare against |
Remarks
Supply a case for every possible value of the input. Use default for the values you do not want to list. The default case must be last.
By default Switches in Swift will not continue to check other cases after a case has been matched.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents