All Projects → leoru → Swiftloader

leoru / Swiftloader

Licence: mit
A simple and beautiful activity indicator written in Swift

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Swiftloader

Vue Wait
Complex Loader and Progress Management for Vue/Vuex and Nuxt Applications
Stars: ✭ 1,869 (+1511.21%)
Mutual labels:  loader, progress, spinner
Whirl
CSS loading animations with minimal effort!
Stars: ✭ 774 (+567.24%)
Mutual labels:  loader, progress, spinner
Vue Loaders
Vue + loaders.css
Stars: ✭ 127 (+9.48%)
Mutual labels:  loader, progress, spinner
Spinners React
Lightweight SVG/CSS spinners for React
Stars: ✭ 254 (+118.97%)
Mutual labels:  loader, progress, spinner
Apesuperhud
A simple way to display a HUD with a message or progress information in your application.
Stars: ✭ 156 (+34.48%)
Mutual labels:  cocoapods, progress, spinner
react-awesome-loaders
🚀 High quality, super responsive and completely customisable Loading Animations to insert into your website with single line of code.
Stars: ✭ 146 (+25.86%)
Mutual labels:  progress, loader, spinner
spinners-angular
Lightweight SVG/CSS spinners for Angular
Stars: ✭ 21 (-81.9%)
Mutual labels:  progress, loader, spinner
Materialactivityindicator
Material Activity Indicator
Stars: ✭ 109 (-6.03%)
Mutual labels:  cocoapods, loader, spinner
Multiprogressview
📊 An animatable view that depicts multiple progresses over time. Modeled after UIProgressView
Stars: ✭ 614 (+429.31%)
Mutual labels:  cocoapods, progress
Spinkit Objc
UIKit port of SpinKit
Stars: ✭ 743 (+540.52%)
Mutual labels:  loader, spinner
Vue Loading Overlay
Vue.js component for full screen loading indicator 🌀
Stars: ✭ 784 (+575.86%)
Mutual labels:  loader, spinner
Progresskit
Progress Views for Cocoa
Stars: ✭ 510 (+339.66%)
Mutual labels:  cocoapods, spinner
Arslineprogress
iOS progress bar, replacement for the default activity indicator.
Stars: ✭ 434 (+274.14%)
Mutual labels:  cocoapods, progress
Aframe Preloader Component
A preloading bar that automatically displays while scene assets load.
Stars: ✭ 27 (-76.72%)
Mutual labels:  loader, spinner
Yaspin
A lightweight terminal spinner for Python with safe pipes and redirects 🎁
Stars: ✭ 413 (+256.03%)
Mutual labels:  loader, spinner
Awloader
AWLoader is a UI Component that allows you to integrate loader that fits your needs within your app.
Stars: ✭ 11 (-90.52%)
Mutual labels:  loader, progress
Vue Simple Spinner
A simple, flexible spinner for Vue.js
Stars: ✭ 385 (+231.9%)
Mutual labels:  progress, spinner
React Circle
Renders a svg circle + progress, it just works 💘
Stars: ✭ 925 (+697.41%)
Mutual labels:  progress, spinner
Nyan Progress
Nyan cat progress bar in Node, why not?
Stars: ✭ 34 (-70.69%)
Mutual labels:  loader, progress
Csspin
CSS Spinners and Loaders - Modular, Customizable and Single HTML Element Code for Pure CSS Loader and Spinner
Stars: ✭ 1,019 (+778.45%)
Mutual labels:  loader, spinner

SwiftLoader

SwiftLoader is a simple and beautiful activity indicator written in Swift.

###Example

Usage

In case you installed SwiftLoader via CocoaPods you need to import it (add this somewhere at the top of your source code file):

import SwiftLoader

Show SwiftLoader without text:

  SwiftLoader.show(animated: true)

Show SwiftLoader with text:

  SwiftLoader.show(title: "Loading...", animated: true)

Hide SwiftLoader:

  SwiftLoader.hide()

Configuration

SwiftLoader has simple configuration system.

You need to create SwiftLoader.Config object, set params:

  var config : SwiftLoader.Config = SwiftLoader.Config()
  config.size = 150
  config.spinnerColor = .redColor()
  config.foregroundColor = .blackColor()
  config.foregroundAlpha = 0.5

and set new config for SwiftLoader:

  SwiftLoader.setConfig(config)

Current available params:

  • size - Size of loader
  • spinnerColor - Color of spinner view
  • spinnerLineWidth - Line width of spinner view layer
  • titleTextColor - Color of title text
  • titleTextFont - Font of title text
  • backgroundColor - Background color for loader
  • foregroundColor - Foreground color for loader
  • cornerRadius - Radius of corners of loader
  • foregroundAlpha - Alpha property for foreground

Install

SwiftSpinner is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SwiftLoader'

NB: Currently Swift CocoaPods work only with 0.36 pre-release version. If you want to learn how to install a Swift cocoapod read more here: http://blog.cocoapods.org/Pod-Authors-Guide-to-CocoaPods-Frameworks/

In case you don’t want to use CocoaPods - just copy the file SwiftLoader/SwiftLoader.swift to your Xcode project.

Maintainers

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].