<commit_before># TransitionViewController

[![Build Status](https://travis-ci.org/gliyao/TransitionViewController.svg?branch=master)](https://travis-ci.org/gliyao/TransitionViewController) 
[![Version](https://img.shields.io/cocoapods/v/TransitionViewController.svg?style=flat)](http://cocoapods.org/pods/TransitionViewController)
[![License](https://img.shields.io/cocoapods/l/TransitionViewController.svg?style=flat)](http://cocoapods.org/pods/TransitionViewController)
[![Platform](https://img.shields.io/cocoapods/p/TransitionViewController.svg?style=flat)](http://cocoapods.org/pods/TransitionViewController)

Use blur transiton effect in 2 steps. 

First, subclass your dialog view controller.
Second, chose tranistion style you want.

<img src="./transition.gif" height="776" width="400"></img>

## Support Xib
You can easily subclass `TransitionViewController` to achieve blur background effect.


## Background Effet

There have 2 kind of background effect. Blur and black with alpha.

<img src="./darkBlurPopupView.png" height="702" width="400"></img>
<img src="./balck05PopupView.png" height="702" width="400"></img>

``` swift
enum TransitionStyle {
	case black(CGFloat)
	case blur(UIBlurEffectStyle)
}
```

## Present and Dismiss Direction

Support 4 direction (top, bottom, left, right)

``` swift
enum TransitionPosition {
	case top, bottom, left, right
}
```


## Requirements

- iOS 8.0 or later

## Installation

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

```ruby
pod 'TransitionViewController'
```

## Author

<NAME>, <EMAIL>

## License

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


## How To Use

``` swift
// 1. Subclass for your dialog view controller
class YourPopupViewController: TransitionViewController {
	override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
		super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
		
		// 2. Change transition here!!
		self.transition = TransitionAnimator(style: .blur(.light), presentFrom: .bottom, dismissTo: .bottom)
	}

	required init?(coder aDecoder: NSCoder) {
		fatalError("init(coder:) has not been implemented")
	}
}
```
<commit_msg>Chore: Try add code coverage<commit_after># TransitionViewController

[![Build Status](https://travis-ci.org/gliyao/TransitionViewController.svg?branch=master)](https://travis-ci.org/gliyao/TransitionViewController) 
[![Version](https://img.shields.io/cocoapods/v/TransitionViewController.svg?style=flat)](http://cocoapods.org/pods/TransitionViewController)
[![License](https://img.shields.io/cocoapods/l/TransitionViewController.svg?style=flat)](http://cocoapods.org/pods/TransitionViewController)
[![Platform](https://img.shields.io/cocoapods/p/TransitionViewController.svg?style=flat)](http://cocoapods.org/pods/TransitionViewController)
[![codecov](https://codecov.io/gh/gliyao/TransitionViewController/branch/master/graph/badge.svg)](https://codecov.io/gh/gliyao/TransitionViewController)

Use blur transiton effect in 2 steps. 

First, subclass your dialog view controller.
Second, chose tranistion style you want.

<img src="./transition.gif" height="776" width="400"></img>

## Support Xib
You can easily subclass `TransitionViewController` to achieve blur background effect.


## Background Effet

There have 2 kind of background effect. Blur and black with alpha.

<img src="./darkBlurPopupView.png" height="702" width="400"></img>
<img src="./balck05PopupView.png" height="702" width="400"></img>

``` swift
enum TransitionStyle {
	case black(CGFloat)
	case blur(UIBlurEffectStyle)
}
```

## Present and Dismiss Direction

Support 4 direction (top, bottom, left, right)

``` swift
enum TransitionPosition {
	case top, bottom, left, right
}
```


## Requirements

- iOS 8.0 or later

## Installation

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

```ruby
pod 'TransitionViewController'
```

## Author

<NAME>, <EMAIL>

## License

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


## How To Use

``` swift
// 1. Subclass for your dialog view controller
class YourPopupViewController: TransitionViewController {
	override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
		super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
		
		// 2. Change transition here!!
		self.transition = TransitionAnimator(style: .blur(.light), presentFrom: .bottom, dismissTo: .bottom)
	}

	required init?(coder aDecoder: NSCoder) {
		fatalError("init(coder:) has not been implemented")
	}
}
```

{'fraction_non_alphanumeric': 0.13295406658238518, 'fraction_numerical': 0.011378002528445006, 'mean_word_length': 5.676511954992968, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 12, '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': '3449011', 'n_tokens_mistral': 1591, 'n_tokens_neox': 1427, 'n_words': 361}