From 2e180b059b970b8e61332033def0e3bcb5abe496 Mon Sep 17 00:00:00 2001 From: Nucleus Date: Mon, 4 Jun 2018 09:32:38 -0300 Subject: [PATCH] Small changes on README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6dcf112..c1d7f0c 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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.