<commit_before>ValueTrackingSlider
========

What is it?
---

A UISlider Subclass that displays live values in a popUpView. It’s inspired by the implementation found [here](https://github.com/mneuwert/iOS-Custom-Controls). This version is built using CALayers, it offers a few more features and it's easy to customize the appearance.

![screenshot] (http://alskipp.github.io/ValueTrackingSlider/img/screenshot1.gif)

Features
---

* Live updating of UISlider value
* Customizable properties:
  * textColor
  * font
  * popUpViewColor
  * popUpViewAnimatedColors - color animates as slider value changes
* Set your own NSNumberFormatter to control the displayed values
* Wholesome springy animation


What do you need?
---

Just include these two files in your project:

* ASValueTrackingSlider.h
* ASValueTrackingSlider.m

How to use it
---

It’s very simple. Just drag a UISlider into your Storyboard/nib and set its class to ASValueTrackingSlider.
The examples below demonstrate how to customize the appearance and value displayed.

```objective-c
self.slider.maximumValue = 255.0;
[self.slider setMaxFractionDigitsDisplayed:0];
self.slider.popUpViewColor = [UIColor colorWithHue:0.55 saturation:0.5 brightness:0.9 alpha:0.8];
self.slider.textColor = [UIColor colorWithHue:0.55 saturation:1 brightness:0.4 alpha:1];
self.slider.font = [UIFont fontWithName:@"Menlo-Bold" size:22];
```

![screenshot] (http://alskipp.github.io/ValueTrackingSlider/img/screenshot2.png)


```objective-c
NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
[formatter setNumberStyle:NSNumberFormatterPercentStyle];
[self.slider setNumberFormatter:formatter];<commit_msg>Add CocoaPods info to README<commit_after>ValueTrackingSlider
========

What is it?
---

A UISlider Subclass that displays live values in a popUpView. It’s inspired by the implementation found [here](https://github.com/mneuwert/iOS-Custom-Controls). This version is built using CALayers, it offers a few more features and it's easy to customize the appearance.

![screenshot] (http://alskipp.github.io/ValueTrackingSlider/img/screenshot1.gif)

Features
---

* Live updating of UISlider value
* Customizable properties:
  * textColor
  * font
  * popUpViewColor
  * popUpViewAnimatedColors - color animates as slider value changes
* Set your own NSNumberFormatter to control the displayed values
* Wholesome springy animation


What do you need?
---

If you use [CocoaPods](http://beta.cocoapods.org) then just add `pod 'ASValueTrackingSlider'` to your podfile.

Alternatively, just include these two files in your project:

* ASValueTrackingSlider.h
* ASValueTrackingSlider.m

How to use it
---

It’s very simple. Just drag a UISlider into your Storyboard/nib and set its class to ASValueTrackingSlider.
The examples below demonstrate how to customize the appearance and value displayed.

```objective-c
self.slider.maximumValue = 255.0;
[self.slider setMaxFractionDigitsDisplayed:0];
self.slider.popUpViewColor = [UIColor colorWithHue:0.55 saturation:0.5 brightness:0.9 alpha:0.8];
self.slider.textColor = [UIColor colorWithHue:0.55 saturation:1 brightness:0.4 alpha:1];
self.slider.font = [UIFont fontWithName:@"Menlo-Bold" size:22];
```

![screenshot] (http://alskipp.github.io/ValueTrackingSlider/img/screenshot2.png)


```objective-c
NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
[formatter setNumberStyle:NSNumberFormatterPercentStyle];
[self.slider setNumberFormatter:formatter];
{'fraction_non_alphanumeric': 0.10005767012687428, 'fraction_numerical': 0.01441753171856978, 'mean_word_length': 5.376838235294118, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6827856', 'n_tokens_mistral': 1116, 'n_tokens_neox': 1070, 'n_words': 318}