Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Fekete Endres committed Sep 27, 2018
1 parent 4463598 commit 88b5729
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -43,7 +43,7 @@ VIPER is followed by:
- Define the communication between the `VIPER` parts (`Interactor`, `Presenter` ...)
- It is the **FIRST** file to code.

## B: Builder
## F: ModuleFactory

- Create the Module

Expand Down Expand Up @@ -128,11 +128,11 @@ You can choose to have a initializer on `ViewModel` that receives a `model` or d

## Router

The `Router` is responsible for redirecting to new `Modules` using their `Builders`. Usually, It has a weak reference to the `View Controller` to be able to push to a new `Module`.
The `Router` is responsible for redirecting to new `Modules` using their `Factories`. Usually, It has a weak reference to the `View Controller` to be able to push to a new `Module`.

```swift
func openTrackScreen(track: Track) {
viewController?.push(trackBuilder.makeModule(track: track), animated: true)
viewController?.push(trackModuleFactory.makeModule(track: track), animated: true)
}
```

Expand Down Expand Up @@ -177,7 +177,7 @@ protocol TracksRouting: class {
}
```

## Builder
## Module Factory

Creates the `Module` injecting the dependencies and returns the `View`.
It usually has only one method to assemble the entire `Module`.
Expand Down

0 comments on commit 88b5729

Please sign in to comment.