ProgressBar Component
The progressBar component is a reusable progressBar that allows you to create customizable progressBar by setting with progress value, total value and active progressBar color.
Features
- Create progressBar.
- Customize progress value, total value, active progressBar line color
- Interact with progressBar by setting initial value and total value.
Installation
-
Copy the
ProgressBar
component folder into your Xcode project. -
Use the
OCProgressBar
view in your SwiftUI code:
import SwiftUI
struct ContentView: View {
var body: some View {
VStack{
OCProgressBar(progressValue: 2, totalProgressValue: 8)
}
.padding()
}
}