Latest 1.0.0
Homepage https://github.com/Nucleus-Inc/NuSignUp
License MIT
Platforms ios 10.0
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 10.0+

Installation

NuSignUp is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "NuSignUp"

Step 1: Create a storyboard to contain your sign up flow.

Step 2: Setting up your SignUpStackC (Optional).

This protocol exists to help user knows about his progress on sign up.
Take a look on example project for ways to use it.

Each SignUpStepVC will access your instance of SignUpStackC by self.parent param on viewWillAppear only to update the current step value calling the method updateForStep, where on your implementation you should update for example your UIProgressView progress.

override open func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)
    ...
    if let navc = self.navigationController as? SignUpStackC{
        navc.updateForStep(step: stepNumber)
    }
    ...
}

Step 3: Your Sign Up Steps.

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
    You can change its delegate param value by calling:
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.

Step 4: Going to next Sign Up Step.

SignUpStepController has a method called goToNextStep that on SignUpStepVC instance executes diferent transitions accordinly to delegate.reviewMode.

Do not forget to take a look on example project.

Author

José Lucas, [email protected]

License

NuSignUp is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "NuSignUp",
    "version": "1.0.0",
    "summary": "The basic configuration of a sign up flow, it is like a pattern. ;)",
    "description": ""Most applications need a sign up flow, so thinking about it I created this project with all basic configurations to turn the process faster and easy to customize. So if you are looking a way to make the sign up flow of your application and do not know how to start, this is the project you are looking for."",
    "homepage": "https://github.com/Nucleus-Inc/NuSignUp",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Josu00e9 Lucas": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Nucleus-Inc/NuSignUp.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "10.0"
    },
    "swift_version": "4.0",
    "source_files": "NuSignUp/Classes/**/*"
}

Pin It on Pinterest

Share This