All Projects → ilyainyushin → Ismessages

ilyainyushin / Ismessages

Licence: mit
This is simple extension for presenting system-wide notifications from top/bottom of device screen.

Projects that are alternatives of or similar to Ismessages

Ehplainalert
Plain style IOS alert
Stars: ✭ 44 (-85.28%)
Mutual labels:  notifications, cocoapods, alert
Alertifyjs
A javascript framework for developing pretty browser dialogs and notifications.
Stars: ✭ 1,922 (+542.81%)
Mutual labels:  notifications, alert
Zebra dialog
A small, compact, and highly configurable jQuery plugin for creating beautiful modal dialog boxes
Stars: ✭ 147 (-50.84%)
Mutual labels:  notifications, alert
Ftindicator
A light wight UI package contains local notification, progress HUD, toast, with blur effect, elegant API and themes support.
Stars: ✭ 292 (-2.34%)
Mutual labels:  notifications, cocoapods
Notie
🔔 a clean and simple notification, input, and selection suite for javascript, with no dependencies
Stars: ✭ 6,170 (+1963.55%)
Mutual labels:  notifications, alert
React Notie
Simple notifications for react
Stars: ✭ 27 (-90.97%)
Mutual labels:  notifications, alert
Bdialog
Extend the Bootstrap Modal features, making dialog more functions and easier to use, dialog type including modal, alert, mask and toast types
Stars: ✭ 174 (-41.81%)
Mutual labels:  notifications, alert
Overhang.js
🔔 A jQuery plugin for notifications, prompts and confirmations.
Stars: ✭ 437 (+46.15%)
Mutual labels:  notifications, alert
Notica
Send browser notifications from your terminal. No installation. No registration.
Stars: ✭ 215 (-28.09%)
Mutual labels:  notifications, alert
Alert After
Get a desktop notification after a command finishes executing.
Stars: ✭ 230 (-23.08%)
Mutual labels:  notifications, alert
mac-ibm-notifications
macOS agent used to display custom notifications and alerts to the end user.
Stars: ✭ 206 (-31.1%)
Mutual labels:  notifications, alert
Swiftoverlays
SwiftOverlays is a Swift GUI library for displaying various popups and notifications
Stars: ✭ 621 (+107.69%)
Mutual labels:  notifications, cocoapods
Badgehub
A way to quickly add a notification badge icon to any view. Make any view of a full-fledged animated notification center.
Stars: ✭ 592 (+97.99%)
Mutual labels:  notifications, cocoapods
SpaceView
No description or website provided.
Stars: ✭ 58 (-80.6%)
Mutual labels:  notifications, alert
Tsmessages
💌 Easy to use and customizable messages/notifications for iOS à la Tweetbot
Stars: ✭ 4,927 (+1547.83%)
Mutual labels:  notifications, cocoapods
Notiflix
Notiflix is a JavaScript library for client-side non-blocking notifications, popup boxes, loading indicators, and more that makes your web projects much better.
Stars: ✭ 172 (-42.47%)
Mutual labels:  notifications, alert
Harpy
Harpy checks a user's currently installed version of your iOS app against the version that is currently available in the App Store. If a new version is available, an alert can be presented to the user informing them of the newer version, and giving them the option to update the application.
Stars: ✭ 2,619 (+775.92%)
Mutual labels:  cocoapods, alert
Glnotificationbar
GLNotificationBar is a ios10 style notification bar, can be used to handle push notification in active state.
Stars: ✭ 306 (+2.34%)
Mutual labels:  notifications, cocoapods
Sweetalert2
A beautiful, responsive, highly customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes. Zero dependencies.
Stars: ✭ 13,929 (+4558.53%)
Mutual labels:  notifications, alert
Razor.SweetAlert2
A Razor class library for interacting with SweetAlert2
Stars: ✭ 98 (-67.22%)
Mutual labels:  notifications, alert

ISMessages

Version CocoaPods GitHub license

This is simple extension for presenting system-wide notifications from top/bottom of device screen.

Requirements

  • Requires iOS 8.2 or later
  • Requires Automatic Reference Counting (ARC)

Features

  • Simple use actions
  • Call from anywhere in app

Installation

CocoaPods

To install ISMessages using CocoaPods, please integrate it in your existing Podfile, or create a new Podfile:

target 'MyApp' do
  pod 'ISMessages'
end

Then run pod install.

Manual

Add ISMessages folder to your project

Usage

#import <ISMessages/ISMessages.h>

Presenting notification

All messages can simply presented without customization and callback action via static method call:

[ISMessages showCardAlertWithTitle:@"This is your title!" 
            message:@"This is your message!"  
            duration:3.f 
            hideOnSwipe:YES 
            hideOnTap:YES 
            alertType:ISAlertTypeSuccess 
            alertPosition:ISAlertPositionTop 
	    	didHide:^(BOOL finished) {
               NSLog(@"Alert did hide.");
            }];

Message with customization and callback action:

ISMessages* alert = [ISMessages cardAlertWithTitle:@"This is custom alert with callback"
                                message:@"This is your message!!"
                                iconImage:[UIImage imageNamed:@"Icon-40"]
                                duration:3.f
                                hideOnSwipe:YES
                                hideOnTap:YES
                                alertType:ISAlertTypeCustom
                                alertPosition:ISAlertPositionTop];
				
alert.titleLabelFont = [UIFont boldSystemFontOfSize:15.f];
alert.titleLabelTextColor = [UIColor blackColor];

alert.messageLabelFont = [UIFont italicSystemFontOfSize:13.f];
alert.messageLabelTextColor = [UIColor whiteColor];

alert.alertViewBackgroundColor = [UIColor colorWithRed:96.f/255.f 
					  green:184.f/255.f 
					  blue:237.f/255.f 
					  alpha:1.f];

[alert show:^{
     NSLog(@"Callback is working!");
} didHide:^(BOOL finished) {
     NSLog(@"Custom alert without image did hide.");
}];				

Messages can be displayed from any location in app, even not associated with UI.

Hiding Messages

Notifications will hidden automatically after your duration or using static method

[ISMessages hideAlertAnimated:YES];

Also you can just tap/swipe {on} message to hide it.

Author

Ilya Inyushin

License

Usage is provided under the MIT License. See LICENSE for full details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].