<commit_before>APBanner by AppsPanel (APNL)
===
![alt text](demo.gif)

APBanner is a simple and customizable iOS in-app notification you can display from wherever you want.

This lib can :
  - Display title, subtitle and body
  - Display auto resizable image
  - Auto expand-collapse with user's gestures 
  
Getting Started
---

#### 1 - Install ####

APBanner is available on [cocoapods](https://cocoapods.org/).

```sh
$ pod 'APBanner', '~> 1.0'
```

#### 2 - Import ####

Add this import where you want to display banner. You can use it in a ViewController, or wherever you want.

```sh
#import <APBanner/APBannerManager.h>
```

#### 3 - Use ####

##### Simple manager option #####

There are three static methods in APBannerManager to show banner. One with only a title, another with only title and image, and the last one with title, subtitle, body and image.

Each parameter is optionnal. The last paramameter is a completion block to catch user's action on this banner (i.e. Single tap and dismiss).

Use it as following :

```sh
    [APBannerManager showBannerWithTitle:@"Title"
                                          subtitle:@"Subtitle"
                                          body:@"Body"
                                          image:[UIImage imageNamed:@"myPicture"]
                                          actionBlock:^(APBannerActionType type) {
                                            switch (type) {
                                              case APBannerActionTypeTap:
                                                NSLog(@"TAP");<commit_msg>update version on README<commit_after>APBanner by AppsPanel (APNL)
===
![alt text](demo.gif)

APBanner is a simple and customizable iOS in-app notification you can display from wherever you want.

This lib can :
  - Display title, subtitle and body
  - Display auto resizable image
  - Auto expand-collapse with user's gestures 
  
Getting Started
---

#### 1 - Install ####

APBanner is available on [cocoapods](https://cocoapods.org/).

```sh
$ pod 'APBanner', '~> 1.0.1'
```

#### 2 - Import ####

Add this import where you want to display banner. You can use it in a ViewController, or wherever you want.

```sh
#import <APBanner/APBannerManager.h>
```

#### 3 - Use ####

##### Simple manager option #####

There are three static methods in APBannerManager to show banner. One with only a title, another with only title and image, and the last one with title, subtitle, body and image.

Each parameter is optionnal. The last paramameter is a completion block to catch user's action on this banner (i.e. Single tap and dismiss).

Use it as following :

```sh
    [APBannerManager showBannerWithTitle:@"Title"
                                          subtitle:@"Subtitle"
                                          body:@"Body"
                                          image:[UIImage imageNamed:@"myPicture"]
                                          actionBlock:^(APBannerActionType type) {
                                            switch (type) {
                                              case APBannerActionTypeTap:
                                                NSLog(@"TAP");
{'fraction_non_alphanumeric': 0.09744560075685904, 'fraction_numerical': 0.003468937243771681, 'mean_word_length': 1.9235023041474655, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 28, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2026974', 'n_tokens_mistral': 831, 'n_tokens_neox': 770, 'n_words': 310}