Skip to content

vladislovshilov/StepView

Repository files navigation

StepView is a library for building fully customize step views in your ios app. It provides an easy way to configure this views and use them.

contributions welcome swift xcode ios pod license

Example

example gif1

example pic

Usage:

Storyboard:

  1. Set a view custom class as the StepView

storyboard example1

  1. Configure view from attribute inspector as you want.

storyboard example2

  1. Profit

storyboard example3

Code:

  1. Create view
let stepView = StepView(frame: view.frame, numberOfSteps: 5, circleBorderColor: .black)
stepView.center = view.center
view.addSubview(stepView)
  1. Change step:

Change to the next step:

stepView.showNextStep()

or for the previous step:

stepView.showPreviousStep()

also you can set a different step by the:

stepView.moveTo(step: 5)

Installation:

Cocoapods:

Add the following entry to your Podfile:

pod 'StepView'

Then run pod install.

Don't forget to import StepView in every file you'd like to use StepView.