malkouz / mkmagneticprogress Goto Github PK
View Code? Open in Web Editor NEWA circular progress bar for iOS written in Swift
License: MIT License
A circular progress bar for iOS written in Swift
License: MIT License
public func style() -> CAShapeLayerLineCap {
switch self {
case .round:
return CAShapeLayerLineCap.round
case .butt:
return CAShapeLayerLineCap.butt
case .square:
return CAShapeLayerLineCap.square
}
}
when set progress with animation property true it is not working self.circularProgeress.setProgress(progress: 0.7, animated: true). If it is false progress working fine.
Hi,
Thanks for your perfect job here.
I use this progress for a circular audio buffer
In the case of AVPlayerItemDidPlayToEndTime notification, i want to progress to end and then to 0, but there is no completion handler to know when animation finished
How can i get animation finish time
Hi @malkouz ,
thank you for this library.
How can I customize font for percent label? I'd like to choose system font with medium or bold weight, non regular.
Thank you.
##1
public enum LineCap : Int{
case round, butt, square
public func style() -> String {
switch self {
case .round:
return CAShapeLayerLineCap.round.rawValue
case .butt:
return CAShapeLayerLineCap.butt.rawValue
case .square:
return CAShapeLayerLineCap.square.rawValue
}
}
}
##2
private func updateShapes() {
backgroundShape?.lineWidth = lineWidth
backgroundShape?.strokeColor = backgroundShapeColor.cgColor
//backgroundShape?.lineCap = lineCap.style()
progressShape?.strokeColor = progressShapeColor.cgColor
progressShape?.lineWidth = lineWidth - inset
// progressShape?.lineCap = lineCap.style()
switch orientation {
the above code is changed in my system and two line need to comment
By setting which value we can make it as full circle
I want to pause and resume the progress bar, can I?
I have view controller with progress bar, and after pop the view controller I want to resume progress bar with old data or global data.
thanks.
I am using MKMagneticProgress library for show progress in UITableviewCell in reusable cell.
In this case progress bar reset issue in coming for set fill again on scroll tableview.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.