fle

FlexibleGauge

A gauge for multiple purposes.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

39

Maintenance

Last Commit

4yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Categories

Readme

FlexibleGauge

With this animated gauge you will be able to create flexible gauges with or without images in or out of the gauge circle.

screenshot

animated

Build Requirements

iOS

9.3+

Installation

pod 'FlexibleGauge'

Adding To Project

You can add FlexibleGauge as a cocoapod with 'pod FlexibleGauge' or you can add it as a resource

Usage

You may add via interface designer

1. Add the resource class

adding via designer

2. Enter mandatory requirements

'New value' vs 'Value' --> If you are willing to see an animation, then you should animate the gauge from Value to New value, lets say your starting value of the gauge is 50, then you should assign 'Value' as 0 to start animation from 0, and assign 'New value' as 50 so that it will animate to 50 from 0. You may also assign the values of the gauge via the code, you just need to connect it to the view as an outlet and call:

-(void)refreshGraph:(CGFloat)newValue withAnimation:(Boolean)withAnimation;

//call the method above from the view class that your outlet is connected as:
[self.gauge refreshGraph:50 withAnimation:YES];

You may add via code

Example:

@property (weak, nonatomic) IBOutlet UIView *gaugeView;
@property(strong, nonatomic) Gauge *gauge;

self.gauge = [[Gauge alloc] initWithFrame:self.gaugeView.bounds];
[self.gauge setDefaultProperties];
[self.gauge setOuterTextProperties:@"outer 2" textColor:[UIColor darkGrayColor] font:[UIFont fontWithName:@"HelveticaNeue" size:11]];
[self.gauge setOuterImageProperties:[UIImage imageNamed:@"business"] imageSize:CGSizeMake(15, 15)];
[self.gauge setNeedsDisplay];
[self.gaugeView addSubview:self.gauge];

//To animate the value use this method
//You need to animate it when the view is already visible for instance in viewDidAppear method
[self.gauge animateGauge];

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100