No description, website, or topics provided.
Objective-C Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Classes
MMPulseView
.gitignore
LICENSE
MMPulseView.podspec
README.md
demo.gif

README.md

MMPulseView

CocoaPods CocoaPods CocoaPods

A simple view to show circle pulse repeatly.

demo

Installation

The preferred way of installation is via CocoaPods. Just add

pod 'MMPulseView'

and run pod install. It will install the most recent version of MMPulseView.

If you would like to use the latest code of MMPulseView use:

pod 'MMPulseView', :head

Usage

pulseView.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
pulseView.colors = @[(__bridge id)[UIColor whiteColor].CGColor,
                     (__bridge id)[UIColor blackColor].CGColor,
                     (__bridge id)[UIColor whiteColor].CGColor];
pulseView.locations = @[@(0.3),@(0.5),@(0.7)];
pulseView.startPoint = CGPointMake(0, 0.5);
pulseView.endPoint = CGPointMake(1, 0.5);

pulseView.minRadius = 0;
pulseView.maxRadius = 100;

pulseView.duration = 3;
pulseView.count = 6;
pulseView.lineWidth = 3.0f;

[pulseView startAnimation];

Changelog

v1.0 first version