Hi, thanks for this helpful library!
I'm currently struggeling to add a custom state. I tried to add the additional state to the state machine as described in the readme. Unfortunately, the app crashes when it tries to create the StatefulViewControllerState with my custom viewKey in the getter of currentState and lastState, because the initialization of the state is forced to not be nil: StatefulViewControllerState(rawValue: viewKey)! and my custom viewKey is not part of the default state enum.
How can this be solved?
Hi, thanks for this helpful library! I'm currently struggeling to add a custom state. I tried to add the additional state to the state machine as described in the readme. Unfortunately, the app crashes when it tries to create the
StatefulViewControllerState
with my customviewKey
in the getter ofcurrentState
andlastState
, because the initialization of the state is forced to not be nil:StatefulViewControllerState(rawValue: viewKey)!
and my customviewKey
is not part of the default state enum. How can this be solved?