Comments (4)
I have updated the code. Now, for every progress bar, you can give different duration.
For this, instead of
init(numberOfSegments: Int, duration: TimeInterval = 5.0) {
We need to pass TimeInterval Array
init(numberOfSegments: Int, durationArrValues: [TimeInterval]) {
Also in "private func animate(animationIndex: Int = 0) { " function,
UIView.animate(withDuration: durationArr[animationIndex]
instead of common duration.
from segmentedprogressbar.
@commando24 There will be no concept for self.duration. Now, this will be array of duration.
Instead of "private let duration: TimeInterval" use private var durationArr = TimeInterval
Also , before super.init instead of "self.duration = duration" this will be "self.durationArr = durationArrValues"
from segmentedprogressbar.
At the moment that's not possible, only one global duration is possible.
from segmentedprogressbar.
@vaishdolly13 what value do we need to set in self.duration before calling super.init in initialiser ?
from segmentedprogressbar.
Related Issues (19)
- Can the individual segments be of different durations? HOT 3
- When app came from background to foreground
- how to multiple story work with this third party ???
- Rewind one story HOT 3
- Segment progressbar pause / resume not working
- Using with collection view
- is it available for swift 4.2
- Skip Story and start Progress bar with next story
- First 2 segmented bars start togheter
- how to restart it from beginning ?
- How to update a custom duration for segmentedprogress and to update progress as well? HOT 4
- Timer is running without sync with video duration and image
- How to fill the Progress bar if we are starting the index from 3 out of 5
- Cocoapods HOT 5
- Change number of segments? HOT 4
- Please specify the license. HOT 1
- Gesture/taps : an enhancement HOT 2
- Remove particular segment HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from segmentedprogressbar.