StepIndicator icon indicating copy to clipboard operation
StepIndicator copied to clipboard

How do I add text to the steps?

Open hardikamal opened this issue 7 years ago • 5 comments

Hi @chenyun122

Thanks for the awesome lib

How do I add text to the steps?

hardikamal avatar Nov 07 '18 13:11 hardikamal

@hardikamal, do you mean the text under circle?

chenyun122 avatar Nov 13 '18 05:11 chenyun122

@chenyun122 yes, bottom in (left to right) or (right to left) and right/left side in (top to bottom) or (bottom to top)

hardikamal avatar Nov 13 '18 14:11 hardikamal

Hello @chenyun122

It would be nice to have a UILabel either top or below circle in horizontal or left size or right side of circle in vertical, similar to this:

Kaakati avatar Jun 02 '19 08:06 Kaakati

Any update on this?

creative-dev-lab avatar Apr 23 '20 20:04 creative-dev-lab

I've come up with a very basic solution (https://github.com/chenyun122/StepIndicator/pull/29) to achieve this.

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

india2sarthak avatar Jul 19 '21 09:07 india2sarthak