Swift automaton