SFGaugeView

Gauge control for IOS

Showing:

Popularity

Downloads/wk

0

GitHub Stars

188

Maintenance

Last Commit

7yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Categories

Readme

SFGaugeView

A custom UIView with a gauge control (tachometer like control). Detects swipe gesture and sets the needle/level appropriately. You can customize colors, the maximum level, min/max images, etc.

Alt text

Setup

Installing with CocoaPods

If you're unfamiliar with CocoaPods you can check out this tutorial here.

  1. In Terminal navigate to the root of your project.

  2. Run 'touch Podfile' to create the Podfile.

  3. Open the Podfile using 'open -e Podfile'

  4. Add the pod SFGaugeView to your Podfile.

    platform :ios, '7.0'
    pod 'SFGaugeView'
    
  5. Run pod install.

  6. Open your app's .xcworkspace file to launch Xcode and start using the control!

Usage

  1. Either create SFGaugeView by dragging UIView from storyboard and change implementing class or create it programmatically

  2. Create an outlet (if create via storyboard)

  3. Set up parameters

    maxlevel = The maximum level of gauge control (unsigned int value)
    minlevel = The minimum level of gauge control (unsigned int value)
    needleColor = Color of needle
    bgColor = Background Color of gauge control
    hideLevel = If set to YES the current level is hidden
    minImage = An image for min level (see screenshot)
    maxImage = An image for max level (see screenshot)
    currentLevel = Sets the current Level
    autoAdjustImageColors = Overlays the images with needleColor (default: NO)
    
  4. GaugeControl interaction currentLevel = Returns the current level

Delegate Method

    - (void) sfGaugeView:(SFGaugeView*) gaugeView didChangeLevel:(NSInteger) level;

Author(s)

Simpliflow GmbH

Thomas Winkler

Licence

Distributed under the MIT License.

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
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial