TKProgressView is an amazing animated activity indicator and easy-to-use to display the progress of an ongoing task on iOS.
// Create your ProgressView
let tkView = TKProgressView(frame: CGRect(x: 50, y: 50, width: 100, height: 100))
self.view.addSubview(tkView)
To start the progress
tkView.startAnimating()
To stop it
tkView.stopAnimating()
To change animation speed
// change speed
tkview.speed = 0.5
You can use CocoaPods to install TKProgressView
by adding it to your Podfile
:
platform :ios, '9.0'
use_frameworks!
pod 'TKProgressView'
- Download and drop
TKProgressView.swift
in your project. - Done!
- More Customization
- Carthage Support
- Unit Test
TKProgressView is available under the MIT license. See the LICENSE file for more info.