Skip to content

Commit

Permalink
Small changes on README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Nucleus authored and Nucleus committed Jun 4, 2018
1 parent 79b6d23 commit 2e180b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ override open func viewWillAppear(_ animated: Bool) {
Each Sign Up Step VC must implement `SignUpStepController`.

Steps that are an instance of `SignUpStepVC` or `SignUpNameSVC` or inherits from one of them have by default its delegate value equals to `DefaultSUpSDelegate` instance.

Probably you will need to make your changes and `DefaultSUpSDelegate` implementation of `SignUpStepDelegate` protocol will not be enough, for these cases you have two options:

- Option 1: Your Step is an instance of `SignUpStepVC` or `SignUpNameSVC`
- Option 1: Your Step is an instance of `SignUpStepVC` or `SignUpNameSVC`.

You can change its `delegate` param value by calling:

```swift
Expand All @@ -59,7 +61,9 @@ SignUpStack.config.baseStepDelegateType(ExampleSignUpDelegate.self)
Remember that doing it all your steps that are an instance of `SignUpStepVC` will use `ExampleSignUpDelegate` instance as its delegate.

- Option 2: Your Step inherits from `SignUpStepVC` or `SignUpNameSVC`.

Only change its delegate value.

Take a look on Example project specifically on `SignUpCodeSVC` class for a safe way to do it.


Expand Down

0 comments on commit 2e180b0

Please sign in to comment.