To run the example project, clone the repo, and run pod install
from the Example directory first.
StepProgressIndicatorView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'StepProgressIndicatorView'
let stepIndicatorView = StepProgressIndicatorView(frame: self.view.bounds)
stepIndicatorView.stepTitles = ["One", "Two", "Three", "Four"]
stepIndicatorView.details = [0: "First", 1: "Second"]
stepIndicatorView.direction = .topToBottom // set direction leftToRight, topToBottom ...
stepIndicatorView.currentStep = 0 // set
Fonts and sizes:
stepIndicatorView.textFont = .systemFont(ofSize: 16)
stepIndicatorView.detailFont = .systemFont(ofSize: 12)
line sizes:
stepIndicatorView.lineStrokeWidth = 2.0
stepIndicatorView.lineMargin = 4.0
stepIndicatorView.lineWidth = 1.0
stepIndicatorView.verticalPadding = 3
stepIndicatorView.horizontalPadding = 4
Change Colors:
stepIndicatorView.circleColor = .lightGray
stepIndicatorView.circleTintColor = .systemTeal
stepIndicatorView.currentTextColor = .black
stepIndicatorView.pastTextColor = .black
stepIndicatorView.futureTextColor = .lightGray
stepIndicatorView.currentDetailColor = .black
stepIndicatorView.pastStepFillColor = .gray
stepIndicatorView.currentStepFillColor = .systemTeal
stepIndicatorView.futureStepFillColor = .lightGray
stepIndicatorView.lineColor = .lightGray
stepIndicatorView.lineTintColor = .gray
miiiiiin, [email protected]
StepProgressIndicatorView is available under the MIT license. See the LICENSE file for more info.