Beautiful activity indicator. Same of MKSpinner with changed animation (https://github.com/icanzilb/MKSpinner)
To run the example project, clone the repo, and run pod install
from the Example directory first.
iOS 8 or later
MKSpinner is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "MKSpinner"
The simple code to get MKSpinner
running in your own app.
import MKSpinner
MKSpinner.show("Connecting to satellite...")
MKSpinner.show("Failed to connect, waiting...", animated: false)
MKSpinner.hide()
In case you want to do something after the hiding animation completes you can provide a closure to the hide()
method:
MKSpinner.hide({
//do stuff
})
That’s all. If you want to change the text of the current activity, just call show(...)
again, this will animate the old text into the new text.
Moayad Al kouz, moayad_kouz9@hotmail.com
MKSpinner is available under the MIT license. See the LICENSE file for more info.