<commit_before>KMMSmileyStrength
=================

## Preview

![KMMSmileyStrength Screenshot](https://raw.githubusercontent.com/kerrmarin/KMMSmileyStrength/master/screenshots/strongpw.jpg)
![KMMSmileyStrength Screenshot](https://raw.githubusercontent.com/kerrmarin/KMMSmileyStrength/master/screenshots/weakpw.jpg)

## Features

A password strength view that uses smiley faces to depict the strength of a password.

* Set a custom font colour for the smiley faces, so that you can style it according to your app.
* Set a custom font size

## Installation

### Cocoapods (Recommended)

1. Add `pod 'KMMSmileyStrength` to your Podfile.
2. Run `pod install`

## Requirements

- iOS 5.0 and greater
- ARC

## Examples

**Code:**

```objc

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //Create the password strength view
    CGRect frame = CGRectMake(0, 0, CGRectGetHeight(self.passwordTextField.frame), CGRectGetHeight(self.passwordTextField.frame));
    self.smileyStrength = [[KMMSmileyStrength alloc] initWithFrame:frame];
    //Set it as the text field's right view<commit_msg>Updated installation instrunctions<commit_after>KMMSmileyStrength
=================

## Preview

![KMMSmileyStrength Screenshot](https://raw.githubusercontent.com/kerrmarin/KMMSmileyStrength/master/screenshots/strongpw.jpg)
![KMMSmileyStrength Screenshot](https://raw.githubusercontent.com/kerrmarin/KMMSmileyStrength/master/screenshots/weakpw.jpg)

## Features

A password strength view that uses smiley faces to depict the strength of a password.

* Set a custom font colour for the smiley faces, so that you can style it according to your app.
* Set a custom font size

## Installation

### Cocoapods (Recommended)

1. Add `pod 'KMMSmileyStrength` to your Podfile.
2. Run `pod install`

Then add `flaticon.ttf` to the project's info.plist under `Fonts provided by application` 

## Requirements

- iOS 5.0 and greater
- ARC

## Examples

**Code:**

```objc

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //Create the password strength view
    CGRect frame = CGRectMake(0, 0, CGRectGetHeight(self.passwordTextField.frame), CGRectGetHeight(self.passwordTextField.frame));
    self.smileyStrength = [[KMMSmileyStrength alloc] initWithFrame:frame];
    //Set it as the text field's right view
{'fraction_non_alphanumeric': 0.11305106940200786, 'fraction_numerical': 0.005237887385421213, 'mean_word_length': 4.861892583120205, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1931538', 'n_tokens_mistral': 785, 'n_tokens_neox': 719, 'n_words': 203}