sandipdhagdi / SDLoader

Swift 4.0 HUD for iOS devices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SDLoader

CI Status Version License Platform

SDLoader is easy to use and customisable HUD for showing ongoing activity for iPhone and iPad iOS devices.

Demo

SDLoaders1 SDLoaders2 SDLoaders3 SDLoaders4

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

alt text alt text alt text alt text alt text

Shital

alt text alt text alt text alt text alt text

License

SDLoader is available under the MIT license. See the LICENSE file for more info.

About

Swift 4.0 HUD for iOS devices

License:MIT License


Languages

Language:Shell 57.8%Language:Swift 34.0%Language:Objective-C 4.6%Language:Ruby 3.6%