<commit_before># NPCColorPicker
## This is a lightweight color picker for iOS. Written in modern swift, delivered as a framework

* iOS 9.1 target
* 100% Swift code
* Simple adoption
* Very lightweight (1 storyboard, no images)
* Bitcode enabled

>Note: Only the color chips are delivered by the framework, the button and the larger green chip are part of the example application.

![Default Configuration](https://github.com/HasanEdain/NPCColorPicker/blob/master/ReadmeScreenShots/DefaultConfig.png?raw=true)
![Custom Configuration](https://github.com/HasanEdain/NPCColorPicker/blob/master/ReadmeScreenShots/CustomConfig.png?raw=true)

##Simple use:
1. Download code

2. Compile Framework

3. Add Framework to your project

4. Add a UIView that will contain the colors (don't forget to constrain the view)

5. Adopt the NPCColorPickerViewDelegate protocol
>     class ViewController: UIViewController, NPCColorPickerViewDelegate
6. Make and initialize an NPCColorPicker variable in your viewController: 
>     var colorPicker = NPCColorPicker()

7. Place the pickerView in your view: 
>     self.colorPicker.embedColorPickerInView(self.embedView, forDelegate: self)

8. Customize as desired
>        You can set the colors to a gradient of your choosing
>        self.colorPicker.changeColorToGradient("ff0000", endColor: "0000ff", steps: 32)<commit_msg>Fix readme`<commit_after># NPCColorPicker
## This is a lightweight color picker for iOS. Written in modern swift, delivered as a framework

* iOS 8.0+ target
* 100% Swift code
* Simple adoption
* Very lightweight (1 storyboard, no images)
* Bitcode enabled

>Note: Only the color chips are delivered by the framework, the button and the larger green chip are part of the example application.

![Default Configuration](https://github.com/HasanEdain/NPCColorPicker/blob/master/ReadmeScreenShots/DefaultConfig.png?raw=true)
![Custom Configuration](https://github.com/HasanEdain/NPCColorPicker/blob/master/ReadmeScreenShots/CustomConfig.png?raw=true)

##Simple use:
1. Download code

2. Compile Framework

3. Add Framework to your project

4. Add a UIView that will contain the colors (don't forget to constrain the view)

5. Adopt the NPCColorPickerViewDelegate protocol
>     class ViewController: UIViewController, NPCColorPickerViewDelegate
6. Make and initialize an NPCColorPicker variable in your viewController: 
>     var colorPicker = NPCColorPicker()

7. Place the pickerView in your view: 
>     self.colorPicker.embedColorPickerInView(self.embedView, forDelegate: self)

8. Customize as desired
>        You can set the colors to a gradient of your choosing
>        self.colorPicker.changeColorToGradient("ff0000", endColor: "0000ff", steps: 32)
{'fraction_non_alphanumeric': 0.07678110003691399, 'fraction_numerical': 0.017718715393133997, 'mean_word_length': 4.942982456140351, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2663682', 'n_tokens_mistral': 799, 'n_tokens_neox': 753, 'n_words': 284}