Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add Title below step Indicator #25

Open
GandhiJee opened this issue Jan 18, 2021 · 1 comment
Open

Unable to add Title below step Indicator #25

GandhiJee opened this issue Jan 18, 2021 · 1 comment

Comments

@GandhiJee
Copy link

Expecting label below the step indicator so that any one can add title for specific step indicator. This is available in android but not in iOS swift.

@india2sarthak
Copy link

First of all, big thanks to @chenyun122 for coming up with this amazing lightweight library. I've come up with a very basic solution (#29) to achieve this. It does not allow for much customization, but you can always tweak the source code to achieve that.

Here's how you can use it..

// Initialize progressbar through code or storyboard
   let progressBar = StepIndicatorView()
// Set the data attributes
  progressBar.currentStep = 0
  progressBar.numberOfSteps = 3
// Set the desired titles
  progressBar.titles = ["One",  "Two", "Three"]

And this is how it looks ...

Screenshot 2021-07-19 at 2 46 41 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants