iOS implementation of material progress bars.
I needed a simple Material Design progress bar, with both determinate and indeterminate states, for a project I was working on. No other Pod I looked at supported both these features; and they did not respond well to resizes, or being added via Interface Builder.
Add NicoProgressBar to your nib or programmatically as a subview.
progressBar.transition(to: .determinate(percentage: 0.5))
progressBar.transition(to: .indeterminate)
progressBar.primaryColor = .blue
progressBar.secondaryColor = .white
progressBar.indeterminateAnimationDuration = 1.5
progressBar.determinateAnimationDuration = 1.5
progressBar.state
case indeterminate
case determinate(percentage: CGFloat)
To run the example project, clone the repo, and run pod install
from the Example directory first.
iOS Deployment Target >= 8.0 Swift 3.2 or 4
Add the following to your Podfile
pod 'NicoProgress'
Add the following to your Cartfile
github "nicorichard/NicoProgress"
Add the following to your Package.swift
dependencies: [
.package(url: "https://github.com/nicorichard/NicoProgress", .upToNextMajor(from: "0.4.0"))
]
Nicolas Richard, nicorichard@gmail.com
NicoProgress is available under the MIT license. See the LICENSE file for more info.