<commit_before>CRGradientNavigationBar
=======================
Custom `UINavigationBar` subclass which allows gradient colored bar navigation bars on iOS 7.

![CRGradientNavigationBar-main](http://chroman.me/wp-content/uploads/2013/10/main.png)

Usage
----------

 - Add the dependency to your Podfile:

```ruby
platform :ios
pod 'CRGradientNavigationBar'
...
```

 - Run `pod install` to install the dependencies.

 - Import the header file wherever you want to use the gradient colored navigation bar:

```objc
#import "CRGradientNavigationBar.h"
```

 - Use with UINavigationController's `initWithNavigationBarClass:toolbarClass:` method:
```objc
UINavigationController *navigationController = [[UINavigationController alloc] initWithNavigationBarClass:[CRGradientNavigationBar class] toolbarClass:nil];
```

- Use an NSArray to set the gradient colors (You can set unlimited colors):
```objc
UIColor *firstColor = [UIColor colorWithRed:255.0f/255.0f green:42.0f/255.0f blue:104.0f/255.0f alpha:1.0f];
UIColor *secondColor = [UIColor colorWithRed:255.0f/255.0f green:90.0f/255.0f blue:58.0f/255.0f alpha:1.0f];
    
NSArray *colors = [NSArray arrayWithObjects:(id)firstColor.CGColor, (id)secondColor.CGColor, nil];
```

- Set the gradient colors via NSArray using UIAppearance `setBarTintGradientColors:` method:
```objc
[[CRGradientNavigationBar appearance] setBarTintGradientColors:colors];
```

- Remember to set (YES) or not (NO) to translucent value using `setTranslucent:` method:
```objc
[[navigationController navigationBar] setTranslucent:NO];
```

- You can change the transparency default value (0.5f), just change this line in the `CRGradientNavigationBar.m` file:
```objc
static CGFloat const kDefaultOpacity = 0.5f;
```

- Full example:
```objc
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];<commit_msg>cocoapod<commit_after>CRGradientNavigationBar
=======================
Custom `UINavigationBar` subclass which allows gradient colored bar navigation bars on iOS 7.

![CRGradientNavigationBar-main](http://chroman.me/wp-content/uploads/2013/10/main.png)

Usage
----------

 - Add the dependency to your Podfile:
```ruby
platform :ios
pod 'CRGradientNavigationBar'
...
```

 - Run `pod install` to install the dependencies.

 - Import the header file wherever you want to use the gradient colored navigation bar:
```objc
#import "CRGradientNavigationBar.h"
```

 - Use with UINavigationController's `initWithNavigationBarClass:toolbarClass:` method:
```objc
UINavigationController *navigationController = [[UINavigationController alloc] initWithNavigationBarClass:[CRGradientNavigationBar class] toolbarClass:nil];
```

- Use an NSArray to set the gradient colors (You can set unlimited colors):
```objc
UIColor *firstColor = [UIColor colorWithRed:255.0f/255.0f green:42.0f/255.0f blue:104.0f/255.0f alpha:1.0f];
UIColor *secondColor = [UIColor colorWithRed:255.0f/255.0f green:90.0f/255.0f blue:58.0f/255.0f alpha:1.0f];
NSArray *colors = [NSArray arrayWithObjects:(id)firstColor.CGColor, (id)secondColor.CGColor, nil];
```

- Set the gradient colors via NSArray using UIAppearance `setBarTintGradientColors:` method:
```objc
[[CRGradientNavigationBar appearance] setBarTintGradientColors:colors];
```

- Remember to set (YES) or not (NO) to translucent value using `setTranslucent:` method:
```objc
[[navigationController navigationBar] setTranslucent:NO];
```

- You can change the transparency default value (0.5f), just change this line in the `CRGradientNavigationBar.m` file:
```objc
static CGFloat const kDefaultOpacity = 0.5f;
```

- Full example:
```objc
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
{'fraction_non_alphanumeric': 0.13105558388577257, 'fraction_numerical': 0.030596634370219276, 'mean_word_length': 6.106884057971015, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '844986', 'n_tokens_mistral': 1310, 'n_tokens_neox': 1167, 'n_words': 327}