Latest 0.0.2
Homepage https://github.com/Dwarven/GradientColorSignal
License MIT
Platforms ios 7.0
Authors

CocoaPods Compatible
Platform
Twitter
License

Animated Gradient Color Signal.

Podfile

To integrate GradientColorSignal into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'GradientColorSignal'

Preview

full

Demo Gif

hollow

Demo Gif

How to use

Signal Type Default:

#import "GradientColorSignal.h"

#pragma mark - init and setup GradientColorSignal

_signal = [[GradientColorSignal alloc] init];
[_signal setType: SignalTypeDefault];
[_signal setStartAngle: @(-M_PI/2)];
//[_signal setEndAngle: @(M_PI/2)];
[_signal setStartPoint: CGPointMake(0, 0.5)];
[_signal setEndPoint: CGPointMake(1, 0.5)];
[_signal setLineWidth: @10];
[_signal setClockwise: NO];
[_signal setLineCap: kCALineCapRound];

[_signal reload];

#pragma mark - animations
//type 1:
[_signal animateToScale: 0.33 duration: 0.3];
//type 2:
[_signal animateToScale: 0.33 duration: 0.3 function:[CAMediaTimingFunction functionWithName: kCAMediaTimingFunctionEaseIn]];

Signal Type Searching:

#import "GradientColorSignal.h"

_signal = [[GradientColorSignal alloc] init];
[_signal setType: SignalTypeSearching];
[_signal setSearchingColor: [UIColor grayColor]];
[_signal setStartAlpha: 1.0];
[_signal setEndAlpha: 0.1];
[_signal setClockwise: YES];
[_signal setSearchingLineWidth: @10];
[_signal setDuration: 1.0];

[_signal reload]; //Auto-rotate when loaded

Stop Animation:

[_signal stop];

Latest podspec

{
    "name": "GradientColorSignal",
    "version": "0.0.2",
    "summary": "Animated Gradient Color Signal.",
    "homepage": "https://github.com/Dwarven/GradientColorSignal",
    "platforms": {
        "ios": "7.0"
    },
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Dwarven": "[email protected]"
    },
    "social_media_url": "https://twitter.com/DwarvenYang",
    "source": {
        "git": "https://github.com/Dwarven/GradientColorSignal.git",
        "tag": "0.0.2"
    },
    "source_files": "Class/*.{h,m}"
}

Pin It on Pinterest

Share This