High Performance Custom Dot Loading Indicator in iOS
A-J-Dot-Loading-Indicator
A-J-Dot-Loading-Indicator is an drop-in solution for custom dot loading indicator in iOS
Features
- [x] No Dependency, 100% iOS Native
- [x] Support both iPad and iPhone family
- [x] Support device rotation
- [x] Non-intrusive integration
- [x] Full documentation
- [x] Easy to customise
Requirements
- iOS 8.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+
- Xcode 8.3+
- Swift 3.1+
Installation
- drag and drop the entire
core
folder andhelper
folder into your project
Full Usage Example
import UIKit
final class ViewController: UIViewController {
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
view.aj_showDotLoadingIndicator()
}
@IBAction func stop(_ sender: UIButton) {
view.aj_hideDotLoadingIndicator()
}
}
Folder Structure
├── ViewController.swift
├── core
│ ├── AJDotLoadingView.swift
│ ├── AJDotLoadingView.xib
│ └── UIDotLoadingIndicator.swift
└── helper
└── UIViewHelper.swift
File | Responsiblity |
---|---|
ViewController | example view controller to show how to use A-J-Dot-Loading-Indicator |
UIViewHelper | helper UIView methods to refactor out common patterns |
core/AJDotLoadingView | wrapper view to include UIDotLoadingIndicator custom control |
core/UIDotLoadingIndicator | UI custom control for the dot loading indicator |