GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - leoru/SwiftLoader: A simple and beautiful activity indicator written in Swift

BranchesTags
Open more actions menu

Latest commit

 

History

63 Commits
63 Commits

Folders and files

NameName
Last commit message
Last commit date
Sources/SwiftLoader
Sources/SwiftLoader
 
 
example/SwiftLoaderExample
example/SwiftLoaderExample
 
 
images
images
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Package.swift
Package.swift
 
 
README.md
README.md
 
 
SwiftLoader.podspec
SwiftLoader.podspec
 
 

Repository files navigation

SwiftLoader

SwiftLoader is a simple and beautiful activity indicator.

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

CocoaPods

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

pod 'SwiftLoader', '1.1.0'

Swift Package Manager

Add as a dependecy to your Swift Package

dependencies: [
  .package(url: "https://github.com/leoru/SwiftLoader.git", branch: "master")
]

Maintainers

  • Kirill Kunst (@kirill_kunst)

License

SwiftLoader is available under the MIT license.

About

A simple and beautiful activity indicator written in Swift

Topics

cocoapodsloaderloading-animationsloading-indicatorloading-spinnerloadingviewprogressspinnerswift

Resources

Readme
MIT license
Activity

Stars

193 stars

Watchers

6 watching

Forks

50 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.