FSM Designer is a powerful tool to design and simulate Finite State Machines. It also provides Swift, Objective-C, C++ and Arduino code generation to implement the designed machines. The generated code can easily be added to your code in order to make it more robust, more testable and more readable.
A comprehensive online documentation helps you to get confident with the subject matter and the application.