Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
will-tm committed Oct 25, 2015
1 parent bb86e1a commit 715eccd
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ $ edit Podfile
Edit your Podfile and add WMGaugeView:

``` bash
platform :ios, '6.0'
pod 'WMGaugeView', '~> 0.0.3'
platform :ios, '8.0'
pod 'WMGaugeView'
```

Install into your Xcode project:
Expand All @@ -60,24 +60,19 @@ All you need to do is drop `WMGaugeView` files into your project, and add `#incl
## Example Usage

``` objective-c
gaugeView.style = [WMGaugeViewStyleFlatThin new];
gaugeView.maxValue = 100.0;
gaugeView.scaleDivisions = 10;
gaugeView.scaleSubdivisions = 5;
gaugeView.scaleStartAngle = 30;
gaugeView.scaleEndAngle = 280;
gaugeView.innerBackgroundStyle = WMGaugeViewInnerBackgroundStyleFlat;
gaugeView.showScaleShadow = NO;
gaugeView.scaleFont = [UIFont fontWithName:@"AvenirNext-UltraLight" size:0.065];
gaugeView.scalesubdivisionsaligment = WMGaugeViewSubdivisionsAlignmentCenter;
gaugeView.scaleSubdivisionsWidth = 0.002;
gaugeView.scaleSubdivisionsLength = 0.04;
gaugeView.scaleDivisionsWidth = 0.007;
gaugeView.scaleDivisionsLength = 0.07;
gaugeView.needleStyle = WMGaugeViewNeedleStyleFlatThin;
gaugeView.needleWidth = 0.012;
gaugeView.needleHeight = 0.4;
gaugeView.needleScrewStyle = WMGaugeViewNeedleScrewStylePlain;
gaugeView.needleScrewRadius = 0.05;

[gaugeView setValue:56.2 animated:YES duration:1.6 completion:^(BOOL finished) {
NSLog(@"gaugeView animation complete");
Expand All @@ -93,12 +88,6 @@ You can customize the following properties of `WMGaugeView`:
@property (nonatomic, readwrite, assign) bool showInnerRim;
@property (nonatomic, readwrite, assign) CGFloat innerRimWidth;
@property (nonatomic, readwrite, assign) CGFloat innerRimBorderWidth;
@property (nonatomic, readwrite, assign) WMGaugeViewInnerBackgroundStyle innerBackgroundStyle;
@property (nonatomic, readwrite, assign) CGFloat needleWidth;
@property (nonatomic, readwrite, assign) CGFloat needleHeight;
@property (nonatomic, readwrite, assign) CGFloat needleScrewRadius;
@property (nonatomic, readwrite, assign) WMGaugeViewNeedleStyle needleStyle;
@property (nonatomic, readwrite, assign) WMGaugeViewNeedleScrewStyle needleScrewStyle;
@property (nonatomic, readwrite, assign) CGFloat scalePosition;
@property (nonatomic, readwrite, assign) CGFloat scaleStartAngle;
@property (nonatomic, readwrite, assign) CGFloat scaleEndAngle;
Expand Down Expand Up @@ -131,6 +120,8 @@ You can customize the following properties of `WMGaugeView`:
@property (nonatomic, readwrite, assign) bool showUnitOfMeasurement;
```

Drawing is handled by style protocols in order to provide easy customization of background and needle.

## Authors

* William Markezana ([@Will_tm](https://twitter.com/Will_tm))
Expand Down

0 comments on commit 715eccd

Please sign in to comment.