Skip to content

PBTinyAlert is a tiny, lightweight and customizable notification view for your IOS portrait App

License

Notifications You must be signed in to change notification settings

mklb/PBTinyAlert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

PBTinyAlert is a tiny, lightweight and customizable notification view for your IOS portrait App

Resources

License

Stars

Watchers

Forks

Packages

No packages published