fpg1503 / UIToast

🍻 An Objective-C class that adds Android-style toast notifications to iOS.
MIT License
1 stars 1 forks source link

UIToast

An Objective-C class that adds Android-style toast notifications to iOS.

CI Status Version License Platform

Inspiration

UIToast is shamefully inspired on Android toasts. If you can I would recommend on not using toasts on iOS. If you don't have a choice (like me when I wrote this pod) this might just be the perfect lib for you.

Usage

Usage is extremely simple and if you use it with Swift you'll think you're reading Android code (except for the lack of contexts and semicolons :P).

NSString *text = @"Hello, UIToast!";
NSTimeInterval duration = 3.0;
[[UIToast makeText:text duration:duration] show];

or simply

[[UIToast makeText:@"Woah, that was easy!"] show];

Contributing and future improvements

Feel free to open feature requests, issues and PRs. For now there is a small road map: