A beautiful loading indicator inspired by material design. π€π»
There are a few properties you may change:
Property | Description | Type | Default Value |
---|---|---|---|
firstColor | The initial color of the loading | UIColor | UIColor.black |
secondColor | The second color of the loading | UIColor | nil |
thirdColor | The third color of the loading | UIColor | nil |
duration | The duration of the loading animation | CGFloat | 3 |
lineWidth | The width of the line | CGFloat | 1 |
hidesWhenStopped | Indicates if the loading must be hidden when the animation stops | Bool | false |
All properties are IBInspectable so you can just drag and drop a new view, change the class and make all the configurations that you need in the Storyboard.
I wish you a funny and happy coding. π
obs: you can set up to three colors in the loading but feel free to set just one or two if you like. π
Kaique Pantosi D'amato, kaiquedamato@icloud.com. π€
KDLoadingView is available under the MIT license. See the License file for more info.