-
-
Save laevandus/08100304038c4b17317ee4e9ac15ee32 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum State { | |
case idle, pending, busy | |
} | |
let someState: State = .pending | |
switch someState { | |
case .idle: | |
loadNext ( ) | |
case .pending: | |
showPendingLabel() | |
case .busy: | |
break | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment