Latest 0.0.3
Homepage https://github.com/fpg1503/UIToast
License MIT
Platforms ios , requires ARC
Authors

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:

  • [ ] Add Travis CI
  • [ ] Create delegate for UIToasts
  • [ ] Improve support for multiple toasts on screen
  • [ ] Make it possible to customize position, color and font
  • [ ] Support custom views as toasts
  • [ ] Use autolayout

Latest podspec

{
    "name": "UIToast",
    "version": "0.0.3",
    "summary": "An Objective-C class that adds Android-style toast notifications to iOS.",
    "description": "An Objective-C class designed to look and feel like improved Android Toasts.nn* Tap do dismissn* Rotation/Various Screen sizes supportedn* Toasts are not attached do current View/ViewControllern* More to come!",
    "homepage": "https://github.com/fpg1503/UIToast",
    "license": "MIT",
    "authors": {
        "Francesco Perrotti-Garcia": "[email protected]"
    },
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/fpg1503/UIToast.git",
        "tag": "v0.0.3"
    },
    "source_files": "UIToast",
    "requires_arc": true
}

Pin It on Pinterest

Share This