SDLoader
SDLoader
is easy to use and customisable HUD for showing ongoing activity for iPhone and iPad iOS devices.
Demo
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Swift 4.0
Installation
SDLoader is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SDLoader'
Usage
(see sample Xcode project in /Example)
Showing the Loader
let sdLoader = SDLoader()
sdLoader.startAnimating(atView: self.view)
Dismissing the Loader
sdLoader.stopAnimation()
Customization
public var background: UIColor?
public var font : UIFont?
public var textColor : UIColor?
public var message : String?
public var sectorColor : CGColor?
public var numberofSectors : Int?
public var spacing : Double?
public var lineWidth : CGFloat?
public var duration : CFTimeInterval?
public var cornerradius : CGFloat?
public var animationType: AnimationType?
Author
Sandip
Shital
License
SDLoader is available under the MIT license. See the LICENSE file for more info.