DACircularProgress
  • September 24, 2023

DACircularProgress is a UIView subclass with circular UIProgressView properties.

It was originally built to be an imitation of Facebook’s photo progress indicator.

View the included example project for a demonstration.

Installation


To use DACircularProgress:

  • Copy over the DACircularProgress folder to your project folder.
  • Make sure that your project includes <QuartzCore.framework>.
  • #import "DACircularProgressView.h"

Example Code

self.progressView = [[DACircularProgressView alloc] initWithFrame:CGRectMake(140.0f, 30.0f, 40.0f, 40.0f)];
self.progressView.roundedCorners = YES;
self.progressView.trackTintColor = [UIColor clearColor];
[self.view addSubview:self.progressView];

  • You can also use Interface Builder by adding a UIView element and setting its class to DACircularProgress

Notes


Compatibility

iOS5.0+

Automatic Reference Counting (ARC) support

DACircularProgress was made with ARC enabled by default.

 

GitHub


View Github

YOU MIGHT ALSO LIKE...
PermissionsSwiftUI: A SwiftUI package to handle permissions

PermissionsSwiftUI displays and handles permissions in SwiftUI. It is largely inspired by SPPermissions. The UI is highly customizable and resembles an Apple style. ...

Pager tab strip view

Introduction PagerTabStripView is the first pager view built in pure SwiftUI. It provides a component to create interactive pager views ...

PageView

SwiftUI view enabling page-based navigation, imitating the behaviour of UIPageViewController in iOS.

Pages

    

How to take action when a property changes

1. Taking Action When a Property Changes: Property Observers Swift lets you observe and respond to changes in a property’s ...