Skip to content

Custom Activity Indicator written in Swift

Notifications You must be signed in to change notification settings

manishah641/Spinner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Spinner

Custom Activity Indicator written in Swift

Inspired by : icanzilb/SwiftSpinner

Preview

Usage

Download the file Spinner.swift and Add in your project.

The view is @IBDesignable so you can directly configure the view properties from Storyboard. Similar to the UIActivityIndicatorView the Spinner also support two styles Light and Dark. Configure the spinner style with :

self.spinner.Style = .Dark

If you want to use only one ring then set the enableInnerLayer property of spinner outlet to false

self.spinner.enableInnerLayer = false

Similar to UIActivityIndicatorView set these properties according to your usage:

self.spinner.startAnimating() // spinner starts animating
self.spinner.stopAnimating()  // spinner stops animating
self.spinner.hidesWhenStopped // spinner hides when stopped

License

MIT Licensed

About

Custom Activity Indicator written in Swift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%