- July 9, 2025
- Mins Read
FFCircularProgressView – An iOS 7-inspired blue circular progress view
This progress view is inspired by the new progress view in the App Store, iOS 7. Also the colors are taken from there.
FFCircularProgressView works on iOS version > 5 and is compatible with both ARC and non-ARC projects. It depends on the following Apple frameworks, which should already be included with most Xcode templates:
You will need LLVM 3.0 or later in order to build FFCircularProgressView.
There are plenty of ways to add this view to your project. Make sure you add the aforementioned frameworks to your project as well.
You have the canonical git submodule
option. Simply issue git submodule add https://github.com/elbryan/FFCircularProgressView.git <path>
in your root folder of your repository.
pod 'FFCircularProgressView', '>= 0.1'
.pod install
.Manually add the source files to your project. The files you need are ‘FFCircularProgressView.h’, ‘FFCircularProgressView.m’, ‘UIColor+iOS7.h’, ‘UIColor+iOS7.m’.
Just use it as it is a normal UIProgressView. Make sure you set the progress value in the main thread 😉
double delayInSeconds = 2.0;
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND,0), ^{
for (float i=0; i<1.1; i+=0.01F) {
dispatch_async(dispatch_get_main_queue(), ^{
[circularProgressView setProgress:i];
});
usleep(10000);
}
});
});
You can also control the progress view spin animation by using the following two methods to start and stop the spinning, respectively:
// Start spinning
[circularProgressView startSpinProgressBackgroundLayer];
// Stop spinning
[circularProgressView stopSpinProgressBackgroundLayer];
The code to draw the tick has been adapted from GSProgressView.
A lightweight sparkline component, supporting Swift, SwiftUI, macCatalyst and Objective-C. What is a sparkline? A sparkline is a very ...
LightChart is a lightweight SwiftUI package with line charts implementation. You can use it when you need only a chart that will perfectly ...
Swift package for displaying charts effortlessly. V2 Beta is here 🎉🎉🎉 V2 focuses on providing a strong and easy to ...
Lightweight and easy to use SwiftUI chart library for all Apple platforms