Skip to content

Latest commit

 

History

History
65 lines (40 loc) · 1.99 KB

README.md

File metadata and controls

65 lines (40 loc) · 1.99 KB

PBTinyAlert

CI Status Version License Platform

PBTinyAlert is a tiny, lightweight, and customizable notification view for your iOS portrait app. It uses the Facebook Pop Framework for fluid and fancy animations.

Example

To run the example project, clone the repo, and run pod install from the Example directory first. If you want to customize, copy the source files directly into your project.

PBTinyAlert Demo Gif

Usage

It’s easy as pie:

PBTinyAlert *myAlert = [PBTinyAlert withTitle:@"Try again"
                                      Message:@"Super swift message"
                              BackgroundColor:nil
                                    TextColor:nil
                                       Effect:PBFillEffect];
[myAlert showAndHideIn:3.f];

// Protip: PBBounceEffect looks nice too!

PBTinyAlert methods

All method names should speak for themselves:

-(void)show;
-(void)showWithVibration;
-(void)showAndHideIn:(float)seconds;
-(void)showWithVibrationAndHideIn:(float)seconds;
-(void)hide;
-(void)vibrate;

Installation

PBTinyAlert is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "PBTinyAlert"

Setup

  • You need include AudioToolbox in your project
  • Facebook Pop is already included as a dependency

License

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