<commit_before>BLShareController
=================

Easy to user ShareController<commit_msg>initial Commit<commit_after>BLShareController
=================

Based on an image I´ve found on [Dribbble](https://dribbble.com/shots/1708543-Share-Screen-IOS) I wanted something similiar for a project I was working on.
 
Now, to play around a little bit with Swift I´ve refactored it. 

##How it works

First, you have to implement the BLPresentationDelegate protocol, initialize the class and set the presentationDelegate

```
class ViewController: UIViewController,BLPresentationDelegate {
	
	override func viewDidLoad() {
		super.viewDidLoad()
		
		let shareController = BLShareController()
		shareController.presentationDelegate = self
		
		self.view.addsubView(shareController.view)
		
	}
}
```

Don`t forget to implement the functions for the delegate protocol

```
class ViewController: UIViewController, BLPresentationDelegate {
	
	....
	
	func presentController(controller: UIViewController) {
        self.presentViewController(controller, animated: true, completion: nil)
    }
    
    func dismissController() {
        self.dismissViewControllerAnimated(true, completion: nil)
    }
}
```

If you like to share a specific text you can set it that way:

```
shareController.initialText = "Your initial text you want to share"
```

The example project should be clear enough. Have fun
{'fraction_non_alphanumeric': 0.0985611510791367, 'fraction_numerical': 0.005035971223021582, 'mean_word_length': 4.700819672131147, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '5744279', 'n_tokens_mistral': 398, 'n_tokens_neox': 359, 'n_words': 126}