nativescript-material-loading-indicator
This package installs an activity indicator for iOS inspired by the material design indicator of Android
npm i --save nativescript-material-loading-indicator
- Version: 1.0.0
- GitHub: https://github.com/nikolay-diyanov/nativescript-material-loading-indicator
- NPM: https://www.npmjs.com/package/nativescript-material-loading-indicator
- Downloads:
- Last Day: 0
- Last Week: 0
- Last Month: 0
NativeScript Material design activity indicator for iOS
Following the material design loading indicator for Android, this plugin provides the same look and feel for iOS.
Prerequisites
NativeScript 1.3.0 (tns --version
) has solved many build issues, so please upgrade if you need to.
Installation
From the command prompt go to your app's root folder and execute:
tns plugin add nativescript-material-loading-indicator
Usage
function creatingView(args) {
var spinnerView = MMMaterialDesignSpinner.alloc().initWithFrame(CGRectMake(0,0,40,40));
spinnerView.lineWidth = 1.5;
spinnerView.tintColor = UIColor.redColor();
spinnerView.startAnimating();
args.view = spinnerView;
}
exports.creatingView = creatingView;
<Page xmlns="http://www.nativescript.org/tns.xsd">
<Placeholder creatingView="creatingView"/>
</Page>