All Projects → pigfly → A_j_dot_loading_indicator

pigfly / A_j_dot_loading_indicator

High Performance Custom Dot Loading Indicator in iOS

Programming Languages

swift
15916 projects

A-J-Dot-Loading-Indicator

Travis Code Swift npm

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 and helper 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

Demo

Credits

A-J-Dot-Loading-Indicator is owned and maintained by the Alex Jiang. Thanks iTMan.design for providing computational resources.

License

A-J-Dot-Loading-Indicator is released under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].