Can the individual segments be of different durations?
Firstly great work. I have different videos of different durations and am looking for a solution where 1 segment of the bar represents 1 video. Thanks.
I don't think I want to add this here as it's quite a unique use case.
Basically you could have a property inside SegmentedProgressBarlike var durations: [TimeInterval] and on line 99, instead of using duration, use durations[animationIndex].
@D-32 Cool. Thanks. I believe this is more generic than you give it credit for. I would love to do it and submit a pull request if you are comfortable merging it in. The description says "Snapchat / Instagram Stories like progress indicator" and I believe its variable in those cases. I might be wrong though because I dont really use insta or snapchat.
I have a project that has this specific requirement and looks like a easy enough fix so I can do it and submit a pull request once I get to that feature. It can have two overloaded methods where you can either pass on as a list or a single number as duration.
By the way thanks for the help :)
Sure, feel free to open a PR :)