<commit_before># SingleLineShakeAnimation
TLDR; Shake a view with a single line of code with a non-intrusive extension for UIView, written in Swift.

With this non-intrusive UIView extension, your UIView subclasses can get shaking with very little code.
Shaking can be useful to indicate an important action your user needs to perform, for example filling out a form before submitting. Show the user it by gently shaking the needed view to get their attention. 
                      
[![Version](https://img.shields.io/cocoapods/v/SingleLineShakeAnimation.svg?style=flat)](http://cocoadocs.org/docsets/SingleLineShakeAnimation)
[![License](https://img.shields.io/cocoapods/l/SingleLineShakeAnimation.svg?style=flat)](http://cocoadocs.org/docsets/SingleLineShakeAnimation)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/haaakon/SingleLineShakeAnimation)

## Installation
```ruby
pod "SingleLineShakeAnimation"
```

Usage
=====
Using the default values for duration and number of times shaking
```swift
button.shake(.Horizontal)
```

### Example
![Resize Example](https://raw.githubusercontent.com/haaakon/SingleLineShakeAnimation/master/example.gif)


Customized usage
=====

With completion block 
```swift
button.shake(.Horizontal, completion: { () -> Void in
            // do something after animation finishes
        })
```

Stating number of times to go back and forth and total duration for the whole animation to take.
```swift
button.shake(.Horizontal, numberOfTimes: 10, totalDuration: 0.6, completion: { () -> Void in
            // do something after animation finishes
        })
```

## Author

<NAME>, <EMAIL>

## License

SingleLineShakeAnimation is available under the MIT license. See the LICENSE file for more info.


<commit_msg>add import header to readme<commit_after># SingleLineShakeAnimation
TLDR; Shake a view with a single line of code with a non-intrusive extension for UIView, written in Swift.

With this non-intrusive UIView extension, your UIView subclasses can get shaking with very little code.
Shaking can be useful to indicate an important action your user needs to perform, for example filling out a form before submitting. Show the user it by gently shaking the needed view to get their attention.

[![Version](https://img.shields.io/cocoapods/v/SingleLineShakeAnimation.svg?style=flat)](http://cocoadocs.org/docsets/SingleLineShakeAnimation)
[![License](https://img.shields.io/cocoapods/l/SingleLineShakeAnimation.svg?style=flat)](http://cocoadocs.org/docsets/SingleLineShakeAnimation)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/haaakon/SingleLineShakeAnimation)

## Installation
```ruby
pod "SingleLineShakeAnimation"
```
In any swift file:
```swift
import SingleLineShakeAnimation
```

Usage
=====
Using the default values for duration and number of times shaking
```swift
button.shake(.Horizontal)
```

### Example
![Resize Example](https://raw.githubusercontent.com/haaakon/SingleLineShakeAnimation/master/example.gif)


Customized usage
=====

With completion block
```swift
button.shake(.Horizontal, completion: { () -> Void in
            // do something after animation finishes
        })
```

Stating number of times to go back and forth and total duration for the whole animation to take.
```swift
button.shake(.Horizontal, numberOfTimes: 10, totalDuration: 0.6, completion: { () -> Void in
            // do something after animation finishes
        })
```

## Author

<NAME>, <EMAIL>

## License

SingleLineShakeAnimation is available under the MIT license. See the LICENSE file for more info.
{'fraction_non_alphanumeric': 0.1092436974789916, 'fraction_numerical': 0.003795066413662239, 'mean_word_length': 4.676923076923077, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 10, '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': '5637225', 'n_tokens_mistral': 1102, 'n_tokens_neox': 1021, 'n_words': 335}