Latest 1.0.0
Homepage https://github.com/kadirkemal/KKDCountDown
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform


KKDCountDown is the simple circle countdown. You can easly configure the circle design. KKDCountDown uses mach_absolute_time function to measure duration accurately.

SCREENSHOT

KKDCountDown

Installation

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

pod 'KKDCountDown'

Usage

Parameters

circleWidth

It is the line width of the circle. Default value is 15.

circleColor

It is the color of the circle. Default value is UIColor.gray.

progressColor

It is the color of the circle. Default value is UIColor.red.

textColor

It is the color of the text. Default value is UIColor.red.

textFont

It is the font of the text. Default value is UIFont.systemFont(ofSize: 36)

defaultText

It is the default text. Default value is ""

textWinkingPeriod

It is the default text. This value should be between 0 and 1. Default value is 0.2

Starting Count Down

use startCountDown function to start

        circularCountDown.startCountDown(10) {
            let alert = UIAlertController(title: "Time is up", message: "", preferredStyle: .alert)
            let cancel = UIAlertAction(title: "Cancel", style: .destructive, handler: { (action) -> Void in })
            alert.addAction(cancel)
            self.present(alert, animated: true)
        }

Stopping Count Down

use stopCountDown function to start

        circularCountDown.stopCountDown();

Pausing Count Down

use stopCountDown function to start

        circularCountDown.pauseCountDown();

Resuming Count Down

use stopCountDown function to start

        circularCountDown.resumeCountDown();

Accurate Measurement

KKDCountDown uses mach_absolute_time() function to measure duration accurately.

Author

Kadir Kemal Dursun, https://github.com/KadirKemal

License

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

Latest podspec

{
    "name": "KKDCountDown",
    "version": "1.0.0",
    "summary": "KKDCountDown is the simple circle countdown. You can easly configure the circle design.",
    "description": "KKDCountDown is the simple circle countdown. You can easly configure the circle design. KKDCountDown uses mach_absolute_time() function to measure duration accurately.",
    "homepage": "https://github.com/kadirkemal/KKDCountDown",
    "screenshots": "https://raw.githubusercontent.com/KadirKemal/KKDCountDown/master/Example/kkdcountdown.gif",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "kadirkemal": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kadirkemal/KKDCountDown.git",
        "tag": "1.0.0"
    },
    "social_media_url": "https://twitter.com/Kadir_Kemal",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "KKDCountDown/Classes/**/*"
}

Pin It on Pinterest

Share This