What is the most possible design pattern for this Xcode project folder hierarchy?

624 views Asked by At

Here is the project folder hierarchy. I would like to know what design pattern is used in this case. So far I have found out is that it is most likely to be Clean-Swift Architecture (VIP).

UnknownPattern

Below is the folder hierarchy of a sample Clean-Swift Project.

Clean-Swift

2

There are 2 answers

2
Andrey Volobuev On BEST ANSWER

Based on the file names this architecture consists of View, Presenter, and Router - so it's more likely MVP. In Clean Swift architecture should be an Interactor.

0
Artur Guseynov On

You need to divide Business and Presentation layers. Business: Models (Plain, Entity), Services: (all services must be wrapped in protocols). Presentation layer: all scenes (modules). Inside each scene 5 folders: view, router, interactor, presenter, assembly. But it just a one implementation. Choose the best and enjoy : ]