Skip to content

Instantly share code, notes, and snippets.

@laevandus
Created September 8, 2023 08:40
Show Gist options
  • Save laevandus/08100304038c4b17317ee4e9ac15ee32 to your computer and use it in GitHub Desktop.
Save laevandus/08100304038c4b17317ee4e9ac15ee32 to your computer and use it in GitHub Desktop.
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