<commit_before># TTWKActivityIndicator

A drop-in component that simplifies creating of AppleWatch-style activity animations at run time in both 
regular iOS apps and WatchKit extensions. You can customize the color and the size of the bubbles.

![](screenshot.gif)

## Quick Start

To use with your WatchKit extension:

 - add a WKInterfaceImage into your storyboard exactly where you want the activity indicator;
 
 - make sure its Mode is set to 'Center' and Width and Height to 'Size To Fit Content';
 
 - connect the image with a corresponding property in your subclass of WKInterfaceController;
 
 - import TTWKActivityIndicator.h;
 
 - add a call to setActivityIndicatorImageWithColor within your awakeWithContext: method, for example:

        @property (nonatomic, weak) IBOutlet WKInterfaceImage *activityIndicator;
        // ...	
        - (void)awakeWithContext:(id)context {
        	// ...
            // Let's have a red activity animation
        	[self.activityIndicatorImage 
        		setActivityIndicatorImageWithColor:[UIColor colorWithRed:0.8588 green:0.0196 blue:0.0706 alpha:1.0]
        	];
        	// ...
        }

 - that's it.

You can also check out the example project in `./Example/ActivityIndicator.xcodeproj`, header files have plenty of comments as well.

## Installation

TTWKActivityIndicator is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

    pod 'TTWKActivityIndicator'

You can also just drop in `/Pod/Classes/TTWKActivityIndicator.*` into your project (along with `/Pod/Classes/TTWKActivityIndicatorView.*` in case you need it a normal iOS app as well).

## Author & License

TTWKActivityIndicator is created by [TouchTribe B.V.](http://www.touchtribe.nl) and is available under the MIT license. See the LICENSE file for more info.
<commit_msg>Smaller screenshot in the README.<commit_after># TTWKActivityIndicator

A drop-in component that simplifies creating of Apple Watch activity animations at run time in both 
regular iOS apps and WatchKit extensions. You can customize the color and the size of the bubbles.

<img src="screenshot.gif" style="width: 119px" />

Note that the Apple Watch simulator from XCode 6.2 displays a different animation now. Hands on videos from Apple's 'Spring Forward' event display this one though.

## Quick Start

To use with your WatchKit extension:

 - add a WKInterfaceImage into your storyboard exactly where you want the activity indicator;
 
 - make sure its Mode is set to 'Center' and Width and Height to 'Size To Fit Content';
 
 - connect the image with a corresponding property in your subclass of WKInterfaceController;
 
 - import TTWKActivityIndicator.h;
 
 - add a call to setActivityIndicatorImageWithColor within your awakeWithContext: method, for example:

        @property (nonatomic, weak) IBOutlet WKInterfaceImage *activityIndicator;
        // ...	
        - (void)awakeWithContext:(id)context {
        	// ...
            // Let's have a red activity animation
        	[self.activityIndicatorImage 
        		setActivityIndicatorImageWithColor:[UIColor colorWithRed:0.8588 green:0.0196 blue:0.0706 alpha:1.0]
        	];
        	// ...
        }

 - that's it.

You can also check out the example project in `./Example/ActivityIndicator.xcodeproj`, header files have plenty of comments as well.

## Installation

TTWKActivityIndicator is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

    pod 'TTWKActivityIndicator'

You can also just drop in `/Pod/Classes/TTWKActivityIndicator.*` into your project (along with `/Pod/Classes/TTWKActivityIndicatorView.*` in case you need it a normal iOS app as well).

## Author & License

TTWKActivityIndicator is created by [TouchTribe B.V.](http://www.touchtribe.nl) and is available under the MIT license. See the LICENSE file for more info.

{'fraction_non_alphanumeric': 0.07408350305498981, 'fraction_numerical': 0.009928716904276986, 'mean_word_length': 3.5632984901277585, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4832746', 'n_tokens_mistral': 1119, 'n_tokens_neox': 1045, 'n_words': 438}