You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
Swift Package for a Use Case centric architecture as proposed by Robert C. Martin and others.
5
5
6
6
## Overview
7
-
ACInteractor is a Swift Package that supports a Use Case centric architecture and TDD in Swift projects. The basic idea is that one Use Case, and only one Use Case, is executed by a single class. As proposed by Robert C. Martin, these kind of classes are called Interactors.
7
+
ACInteractor is a [Swift Package](https://swift.org/package-manager/) that supports a Use Case centric architecture and TDD in Swift projects. The basic idea is that one Use Case, and only one Use Case, is executed by a single class. As proposed by Robert C. Martin, these kind of classes are called Interactors.
8
8
- Each Interactor has a Request model.
9
9
- Each Interactor has a Response model.
10
10
- Each Interactor has an Execute function that takes the Request model and returns the Response model.
@@ -50,15 +50,14 @@ ACInteractor
50
50
├── LICENSE
51
51
├── README.md
52
52
├── Sources // The source files
53
-
├── Tests // The unit test files
54
-
└── Xcode // The Xcode project to run the test
53
+
└── Tests // The unit test files
55
54
```
56
55
57
56
## Setup
58
-
Since Swift 3 and Swift Package are not available with a stable Xcode release, just add the Files of the **Sources** folder to your project.
57
+
Since [Swift Package](https://swift.org/package-manager/) is not supporting iOS Xcode projects yet, it's recommended to add the files of the **Sources** folder directly to your project.
59
58
60
59
### via Git Submodule
61
-
At the moment it's recommended to add the entire ACInteractor project as a [Git Submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules) to your repository.
60
+
You can add the entire ACInteractor project as a [Git Submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules) to your repository.
62
61
63
62
0. Navigate to the root directory of your Git repository in Terminal.
64
63
0. Run the following command:
@@ -68,7 +67,15 @@ At the moment it's recommended to add the entire ACInteractor project as a [Git
68
67
0. Add the files of the **Sources** folder to your project.
69
68
70
69
### via Download
71
-
Alternatively you can just download the files directly from Github and add the files of the *Sources* folder to your project.
70
+
Alternatively you can just download the files directly from Github and add the files of the **Sources** folder to your project.
71
+
72
+
### as Swift Package Dependency
73
+
You can also add it as [Swift Package](https://swift.org/package-manager/) Dependency to another Swift Package.
0 commit comments