@@ -47,20 +47,21 @@ Example for a ToDO module:
4747
4848#pragma mark - InteractorProtocol
4949
50- @protocol ToDoInteractorProtocol <NSObject>
50+ @protocol ToDoInteractorOutputProtocol <NSObject>
5151
52- - (void)setPresenter:(id<ToDoPresenterProtocol>)protocol;
53- - (id<ToDoPresenterProtocol>)getPresenterProtocol;
52+ @end
53+
54+ @protocol ToDoInteractorInputProtocol <NSObject>
55+
56+ - (void)setOutput:(id<ToDoInteractorOutputProtocol>)output;
57+ - (id<ToDoInteractorOutputProtocol>)getOutputProtocol;
5458
5559@end
5660
5761#pragma mark - ViewProtocol
5862
5963@protocol ToDoViewProtocol <NSObject>
6064
61- - (void)setPresenter:(id<ToDoPresenterProtocol>)protocol;
62- - (id<ToDoPresenterProtocol>)getPresenterProtocol;
63-
6465@end
6566```
6667
@@ -69,9 +70,9 @@ Example for a ToDO module:
6970```
7071NS_ASSUME_NONNULL_BEGIN
7172
72- @interface ToDoInteractor: NSObject<ToDoInteractorProtocol >
73+ @interface ToDoInteractor: NSObject<ToDoInteractorInputProtocol >
7374
74- @property (nonatomic, weak, nullable) id<ToDoPresenterProtocol> presenter ;
75+ @property (nonatomic, weak, nullable) id<ToDoInteractorOutputProtocol> output ;
7576
7677@end
7778
@@ -83,14 +84,14 @@ NS_ASSUME_NONNULL_END
8384```
8485NS_ASSUME_NONNULL_BEGIN
8586
86- @interface ToDoPresenter: NSObject<ToDoPresenterProtocol >
87+ @interface ToDoPresenter: NSObject<ToDoInteractorOutputProtocol >
8788
8889@property (nonatomic, weak, nullable) id<ToDoViewProtocol> view;
89- @property (nonatomic, weak ) id<ToDoInteractorProtocol > interactor;
90+ @property (nonatomic) id<ToDoInteractorInputProtocol > interactor;
9091@property (nonatomic, weak) id<ToDoWireframeProtocol> router;
9192
9293- (instancetype)initWithInterface:(id<ToDoViewProtocol>)interface
93- interactor:(id<ToDoInteractorProtocol >)interactor
94+ interactor:(id<ToDoInteractorInputProtocol >)interactor
9495 router:(id<ToDoWireframeProtocol>)router;
9596
9697@end
@@ -103,6 +104,10 @@ NS_ASSUME_NONNULL_END
103104```
104105@interface ToDoRouter: NSObject<ToDoWireframeProtocol>
105106
107+ @property (nonatomic, weak) ToDoViewController *viewController;
108+
109+ + (UIViewController *)createModule;
110+
106111@end
107112```
108113
@@ -113,7 +118,7 @@ NS_ASSUME_NONNULL_BEGIN
113118
114119@interface ToDoViewController: UIViewController<ToDoViewProtocol>
115120
116- @property (nonatomic, nullable) id<ToDoPresenterProtocol> presenter;
121+ @property (nonatomic) ToDoPresenter * presenter;
117122
118123@end
119124
0 commit comments