Latest 1.0.0
Homepage https://github.com/kaunamohammed/KDCircularActivityIndicator
License MIT
Platforms ios 10.0
Authors

Version
License
Platform

KDCircularActivityIndicator

Installation

KDCircularActivityIndicator is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'KDCircularActivityIndicator'

Usage

You can easily customize the animation with the following self-descriptive properties:

  • lineWidth: This property controls the width of the circular stroke path
  • strokeStartDuration: Duration for stroke start animation
  • strokeEndDuration: Duration for stroke end animation
  • spinDuration: Rotating duration for 2pi
  • shouldAutoReverseAnimation: Indicates whether the animation should be reversed
  • lineDash: The pattern used to draw the line
  • colors: The colors to add to the indicator

Initialize the indicator like this or any other way you want

lazy var activityIndicator: KDCircularActivityIndicator = {
        let indicator = KDCircularActivityIndicator()
        indicator.colors = [.red, .blue]
        indicator.translatesAutoresizingMaskIntoConstraints = false
        return indicator
    }()

Call startAnimating() to you know what

activityIndicator.startAnimating()

Call stopAnimating() to you also know what

activityIndicator.stopAnimating()

Author

This framework was written by Kauna Mohammed.

Inspiration

KDCircularActivityIndicator was inspired by an Objective-C framework – DTCircularActivityIndicator.

The API of KDCircularActivityIndicator has been designed to be as close as possible to DTCircularActivityIndicator for consistency and it’s also designed with a swifty feeling ✌🏿. Check out DTCircularActivityIndicator if you want a framework with the same functionality in Objective-C.

License

KDCircularActivityIndicator is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "KDCircularActivityIndicator",
    "version": "1.0.0",
    "summary": "This is a circle activity indicator",
    "description": "A circle activity indicator written in swift",
    "homepage": "https://github.com/kaunamohammed/KDCircularActivityIndicator",
    "license": "MIT",
    "authors": {
        "Kauna Mohammed": "[email protected]"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source": {
        "git": "https://github.com/kaunamohammed/KDCircularActivityIndicator.git",
        "tag": "1.0.0"
    },
    "source_files": "KDCircularActivityIndicator/**/*",
    "exclude_files": "KDCircularActivityIndicator/KDCircularActivityIndicator/*.plist"
}

Pin It on Pinterest

Share This