Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
committing...

AlvinZhu gbammc

:octocat:
committing...
View GitHub Profile
View StateMachine.swift
import Foundation
protocol StateType: Hashable {}
protocol EventType: Hashable {}
struct Transition<S: StateType, E: EventType> {
let event: E
let fromState: S
let toState: S
You can’t perform that action at this time.