iwasrobbed / rpcircularprogress Goto Github PK
View Code? Open in Web Editor NEW(Swift) Circular progress UIView subclass with UIProgressView properties
License: MIT License
(Swift) Circular progress UIView subclass with UIProgressView properties
License: MIT License
There is no UpdateProgress: method in RPCircularProgress-Swift.h. Also the "progress" property is readonly. How can I set a progress value from within Objective C project?
Please add s.swift_version = '4.2' to podspec
First of all, thank you for sharing your awesome work!
While I was using your library, I noticed that I get a little dot on my view when I set clockwiseProgress = false
I get this issue whether I implement it programmatically or using storyboard. It works fine if clockwiseProgress = true
. I am using Swift 4, Xcode Version 9.3. Do you have any idea why this would happen?
Im trying to use in an old project (Objc one) the library, but i notice that the generated interface didn't show all the methods ( the ones at the extensions).
Basically I invoke the method updateProgress
I am getting this wierd crash right after installing this as a pod and running the application
dyld: Library not loaded: @rpath/XCTest.framework/XCTest
Referenced from: /Users/colworx/Library/Developer/CoreSimulator/Devices/8F5D5AC5-3A58-4577-AAC1-BA1A170D728C/data/Containers/Bundle/Application/E1DE38E0-B483-4CD5-A6E8-2665EF17EEAB/squad.app/Frameworks/libswiftXCTest.dylib
Reason: image not found
How can I use RPCircularProgress
with SwiftUI?
Add support for Objective-C
When i press my home button to turn my app to background, my circular progress completion handler is directly executed without waiting the already set duration .
Any solution ?
how do i add this on alert view?
Updating progress updateProgress(1.0)
calls animate()
eventually leading to progressLayer.add(animation, forKey: AnimationKeys.progress)
This leads to high CPU use due system calling draw()
repeatedly even after the animation has finished and the progress is set to the final value.
Setting animation.isRemovedOnCompletion = true
fixes the issue at my end. Another work around is setting a completion handler and calling updateProgress(1.0, animated: false, ...)
to kill the animation, which is not ideal.
I'm unaware of any broader issues setting isRemovedOnCompletion
so leaving this as an issue rather than pull request.
Any chance you will create a new pod version for Xcode 10.2 / Swift 5 support?
I've added a RPCircularProgress
to my view controller via storyboard, and in the view controller's class, I call updateProgress
, a white dot appears on the screen. The dot actually moves with the bar as it fills up.
I'm using the Swift 2.3 version with the AnimationDelegate commented out as CAAnimation isn't supported by Swift 2.1.
great library! swift 4 support would be nice in the future.
Will there be a Swift 3 and iOS 10 Support. Currently there are lot's of compile errors.
Thank you.
From an issue via email:
How do I pause and resume an animation (i.e. one that's in the middle of animating)?
Read Apple's technical note here: https://developer.apple.com/library/content/qa/qa1673/_index.html
e.g.
func pauseAnimation() {
var pausedTime = layer.convertTime(CACurrentMediaTime(), fromLayer: nil)
layer.speed = 0.0
layer.timeOffset = pausedTime
}
func resumeAnimation() {
var pausedTime = layer.timeOffset
layer.speed = 1.0
layer.timeOffset = 0.0
layer.beginTime = 0.0
let timeSincePause = layer.convertTime(CACurrentMediaTime(), fromLayer: nil) - pausedTime
layer.beginTime = timeSincePause
}
Is there currently an easy way to start the progress animation from lets say .3 to the updated progress?
I am able to get this functionality from changing the current progress in updateProgress to something other than 0 but I figured that I would ask to see if there is better way to do this
This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.
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.