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.
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.
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!
All method names should speak for themselves:
-(void)show;
-(void)showWithVibration;
-(void)showAndHideIn:(float)seconds;
-(void)showWithVibrationAndHideIn:(float)seconds;
-(void)hide;
-(void)vibrate;
PBTinyAlert is available through CocoaPods. To install
it, simply add the following line to your Podfile
:
pod "PBTinyAlert"
- You need include
AudioToolbox
in your project - Facebook Pop is already included as a dependency
PBTinyAlert is available under the MIT license. See the LICENSE file for more info.