• Stars
    star
    725
  • Rank 62,504 (Top 2 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created almost 11 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

UIKit port of SpinKit

SpinKit-ObjC

UIKit port of SpinKit.

Installing

CocoaPods is the recommended way for adding SpinKit to your project.

pod 'SpinKit', '~> 1.1'

If you are not yet using CocoaPods, I definetly recommend you to check out their Getting Started guide and the NSHipster article.

Usage

Simply instantiate RTSpinKitView with the desired style and add to your view hierarchy.

#import <SpinKit/RTSpinKitView.h>
...
RTSpinKitView *spinner = [[RTSpinKitView alloc] initWithStyle:RTSpinKitViewStyleWave];
[self.view addSubview:spinner];

You can change the size of the spinner by manipulating the spinnerSize property. The default size is 37.0.

spinner.spinnerSize = 100.0;
[spinner sizeToFit];

Available styles:

  • RTSpinKitViewStylePlane
  • RTSpinKitViewStyleCircleFlip
  • RTSpinKitViewStyleBounce
  • RTSpinKitViewStyleWave
  • RTSpinKitViewStyleWanderingCubes
  • RTSpinKitViewStylePulse
  • RTSpinKitViewStyleChasingDots
  • RTSpinKitViewStyleThreeBounce
  • RTSpinKitViewStyleCircle
  • RTSpinKitViewStyle9CubeGrid
  • RTSpinKitViewStyleWordPress
  • RTSpinKitViewStyleFadingCircle
  • RTSpinKitViewStyleFadingCircleAlt
  • RTSpinKitViewStyleArc
  • RTSpinKitViewStyleArcAlt

MBProgressHUD

SpinKit integrates nicely with the amazing MBProgressHUD library:

RTSpinKitView *spinner = [[RTSpinKitView alloc] initWithStyle:RTSpinKitViewStyleWave color:[UIColor whiteColor]];

MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
hud.square = YES;
hud.mode = MBProgressHUDModeCustomView;
hud.customView = spinner;
hud.labelText = NSLocalizedString(@"Loading", @"Loading");

[spinner startAnimating];

Acknowledgements

Animations based on SpinKit by Tobias Ahlin.

SpinKit Contributors.

More Repositories

1

swearjar-node

Profanity detection and filtering library.
JavaScript
73
star
2

UIImage-RTTint

Retina-aware category for tinting, darkening and lightening a UIImage.
Objective-C
42
star
3

RotatingLabel

A label component that animates text changes by scrolling characters.
Swift
40
star
4

ColorToolbox

Swift color utilities
Swift
33
star
5

SmoothGradient

A SwiftUI package for creating smooth gradients using easing functions.
Swift
31
star
6

php5-browserid

BrowserID verifier lib for PHP 5.3 or greater
PHP
17
star
7

swearjar-php

Profanity detection PHP library
PHP
14
star
8

roxphp

Minimalist PHP/MySQL Web Application Framework
PHP
14
star
9

creditcardjs

Credit-card utilities
JavaScript
8
star
10

jsonbuilder

DSL for generating JSON in PHP
PHP
8
star
11

CalendarDate

Naive date and time for Swift
Swift
6
star
12

SimplePath

Path library for Swift
Swift
4
star
13

UIScrollView-RTPageNumber

Objective-C category for calculating and setting current page number on paging-enabled UIScrollViews
Objective-C
4
star
14

php-merchant

Library of payment gateways
PHP
3
star
15

dotstrings

A parser for Apple strings files (.strings) written in Ruby.
Ruby
3
star
16

do_later

Delayed jobs for RoxPHP
PHP
3
star
17

tagdraw

GML to image
Ruby
2
star
18

knob.js

Experimental HTML5 Canvas Knob Widget
JavaScript
2
star
19

stylegen

CLI tool for managing colors in iOS apps.
Ruby
2
star
20

minos

jQuery selectors minus jQuery - jQuery alternative
JavaScript
2
star
21

minecraft-spider

3D printable Minecraft spider toy.
OpenSCAD
2
star
22

mongo_model

MongoDB support for RoxPHP
PHP
2
star
23

php-oexchange

OExchange PHP Library
PHP
2
star
24

php_permalink_fu

PHP
1
star
25

yuka

simple and lightweight expression evaluator
C++
1
star
26

rsound

1
star
27

color-correction

Color correction test with PHP GD
PHP
1
star
28

roxphp-orchestra-demo

PHP
1
star
29

rainbow

Color utils
PHP
1
star
30

rtris

Tetris Guideline-Compliant Tetris in Ruby
Ruby
1
star
31

spong

Pong game using HTML5 canvas
JavaScript
1
star
32

rox_helpers

Collection of helpers for RoxPHP apps
PHP
1
star