JDCircularProgress is animateable UIView that can significantly enhance your users’ experiences and set your app apart from the rest of the pack.
It is build using CABasicAnimation, CAKeyFrameAnimation and CAShapeLayer through UIBezierpath. Its fun to play with CoreGraphics.It starts slow and By the end, you’ll be able to create stunning graphics for your apps.
- iOS 11.0+ / Mac OS X 10.9+ / watchOS 2.0+ / tvOS 9.0+
- Xcode 8.0+
To integrate JDCircularProgress into your Xcode project using CocoaPods, specify it in your
use_frameworks! pod 'JDCircularProgress'
Then, run the following command:
$ pod install
JDCircularProgress into your Xcode project using Carthage, specify it in your
JDCircularProgress in your project, add the proper description to your
// swift-tools-version:5.0 import PackageDescription let package = Package( name: "YOUR_PROJECT_NAME", dependencies: [ .package(url: "https://github.com/jwd-ali/JDCircularProgress.git") ], targets: [ .target( name: "YOUR_TARGET_NAME", dependencies: ["JDCircularProgress"] ), ... ] )
If you prefer not to use a dependency manager, you can integrate JDCircularProgress into your project manually.
- Add sources into your project:
If you are using any dependency manager (pods , carthage , package manager)to integrate JDCircularProgress. Import JDCircularProgress first:import JDCircularProgress
And for Manuall install you dont need to import anything
- Init your view with
JDCircularProgresssame as you initialize default
let progressView = ProgressView()
This function will animate once .. Every startAnimating function also have completion block
This function will run animation in loop until you stop it
See the Demo Xcode project its easy to understand with proper comments on properties .. write me if you didn’t get anything [email protected]
Congratulations! You’re done.