Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Latest commit

 

History

History
79 lines (57 loc) · 2.08 KB

README.md

File metadata and controls

79 lines (57 loc) · 2.08 KB

MATT"S CHANGE!

WE OWN THIS!!!

AMSmoothAlert

I saw this pretty cool alert view concept on Dribbble so i decided to reproduce it !

Screen1

(the above gif is slower than the real speed animation)

##Installation

It uses :

  • GPUImage Framework

Please note that GPUImage doesn't support arm64 devices yet.

##Easy to use !

AMSmoothAlertView *alert = [[AMSmoothAlertView alloc]initWithTitle:@"Congrats !" 
        andText:@"You've just displayed this awesome alert view !" 
        forAlertType:AlertSuccess];

Main methods :

//initialisation with a Title and a Text message
//drop animation init
- (id) initDropAlertWithTitle:(NSString*) title andText:(NSString*) text forAlertType:(AlertType) type;
//fade in animation init
- (id) initFadeAlertWithTitle:(NSString*) title andText:(NSString*) text forAlertType:(AlertType) type;
//set corner radius or not on the alertView
- (void) setCornerRadius:(float)cornerRadius;
//show the alertview!
- (void) show;
//dismiss it !
- (void) dismissAlertView;

You can now edit title and text fonts, circle icon, colors and the "ok" button (multiple button feature is coming soon).

//title font customization
[alert setTitleFont:[UIFont fontWithName:@"Verdana" size:25.0f]];
//text message font customization
[alert setTextFont:[UIFont fontWithName:@"Futura-Medium" size:13.0f]];
//icon customization
[alert.logoView setImage:[UIImage imageNamed:@"checkMark.png"]];

Three types of alert views (for now)

typedef enum AlertType : NSInteger AlertType;
enum AlertType : NSInteger {
    AlertSuccess,
    AlertFailure,
    AlertInfo
};

##Incoming improvments

  • KVO bindings (change the button label for example)
  • performances
  • more customisation
  • more circles + icons
  • more animations

Also check out my other controler AMLoginViewController

Antoine