Skip to content

Commit d5ceca0

Browse files
author
Maciej Konieczny
committed
Merge branch 'LABSM-10-protocol-init' into develop
2 parents 743462b + 6987685 commit d5ceca0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

StateMachine/StateMachine.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ public protocol StateMachineSchemaType {
2222

2323
var initialState: State { get }
2424
var transitionLogic: (State, Event) -> (State, (Subject -> ())?)? { get }
25+
26+
init(initialState: State, transitionLogic: (State, Event) -> (State, (Subject -> ())?)?)
2527
}
2628

2729

0 commit comments

Comments
 (0)