Swiftpack.co - miiiiiin/StepProgressIndicatorView as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by miiiiiin.
miiiiiin/StepProgressIndicatorView 1.0.2
Step progress indicator view libary for iOS
⭐️ 3
🕓 3 years ago
iOS
.package(url: "https://github.com/miiiiiin/StepProgressIndicatorView.git", from: "1.0.2")

StepProgressIndicatorView

Version License Platform Carthage Compatible SwiftPM

Example

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

Installation

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

pod 'StepProgressIndicatorView'

Usage

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 
        

Appearance

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

Author

miiiiiin, [email protected]

License

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

GitHub

link
Stars: 3
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics