https://github.com/bluepixeltech/bpactivityindicator
BPActivityIndicator is a light-weight replacement for UIActivityIndicatorView based on Core Animation and Core Graphics. I can added to your project both programmatically and via Interface Builder.
https://github.com/bluepixeltech/bpactivityindicator
activity-indicator coreanimation coregraphics swift swift5 xcode xcode11
Last synced: 7 months ago
JSON representation
BPActivityIndicator is a light-weight replacement for UIActivityIndicatorView based on Core Animation and Core Graphics. I can added to your project both programmatically and via Interface Builder.
- Host: GitHub
- URL: https://github.com/bluepixeltech/bpactivityindicator
- Owner: bluepixeltech
- License: mit
- Created: 2020-05-23T17:30:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-27T00:17:35.000Z (over 5 years ago)
- Last Synced: 2025-07-01T03:07:17.267Z (7 months ago)
- Topics: activity-indicator, coreanimation, coregraphics, swift, swift5, xcode, xcode11
- Language: Swift
- Homepage:
- Size: 70 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# BPActivityIndicator
[](https://travis-ci.org/bluepixeltech/BPActivityIndicator)
[](https://cocoapods.org/pods/BPActivityIndicator)
[](https://cocoapods.org/pods/BPActivityIndicator)
[](https://cocoapods.org/pods/BPActivityIndicator)
## Introduction
BPActivityIndicator is a light-weight customizable replacement for UIActivityIndicatorView based on Core Animation and Core Graphics. It can be added to your project both programmatically and via Interface Builder.
🎞 | 🎞 | 🎞
------------ | ------------- | -------------
 |  | 
## Features
* Custom color
* Custom size
* Custom style
* Custom backgound (none, compact and full)
## Available styles
**STYLE** | **STYLE**
------------ | -------------
*standardSpinning* | *standardPulsating*
*standardSpinningDashed* | *standardTrailingContinuous*
*standardTrailingDashed* | *standardEchoOutside*
*standardEchoInside* | *standardRainbowFill*
*tripleDotDance* | *iOSCircles*
*iOS* | *ringFlare*
*linearBars* | *linearBarWave*
*linearBarWaggle* | *linearBarHop*
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
* Xcode 11, Swift 5
## Installation
* ### Via Cocoapods
BPActivityIndicator is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod 'BPActivityIndicator'
```
* ### Via source file
Simply drag & drop BPActivityIndicator.swift into your project.
## Usage
* ### Interface Builder
In Storyboard, drag & drop a UIView object into the view controller. In view's Identity Inspector, change the **Class** and **Module** to BPActivityIndicator.
* ### Programmatically
First, import the module:
```swift
import BPActivityIndicator
```
Then, create an instance of BPActivityIndicator, and enjoy!
```swift
let ai = BPActivityIndicator(frame: CGRect(x: 50.0, y: 50.0, width: 170.0, height: 200.0))
ai.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(ai)
ai.activityIndicatorStyle = .tripleDotDance
ai.backgroundMode = .none
ai.backgroundColorStyle = .dark
ai.titleColor = .lightGray
ai.titleFont = UIFont.systemFont(ofSize: 18.0, weight: .light)
ai.title = "Please wait..."
ai.color = .lightGray
ai.lineWidth = 3.0
ai.startAnimating()
```
## Author
Pouya Khansaryan, bluepixel.technologies@gmail.com
## License
BPActivityIndicator is available under the MIT license. See the LICENSE file for more info.