All Projects → jhl1214 → Gcnotificationview

jhl1214 / Gcnotificationview

Licence: mit
Simplest notification alert view for iOS

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Gcnotificationview

Notificationbar
A simple module for iOS that allows you to show notifications strips
Stars: ✭ 40 (+48.15%)
Mutual labels:  alert, notification
MultiModal
Use multiple .sheet, .alert, etc. modifiers in the same SwiftUI View
Stars: ✭ 49 (+81.48%)
Mutual labels:  alert, view
React Native Dropdownalert
A simple alert to notify users about new chat messages, something went wrong or everything is ok.
Stars: ✭ 1,628 (+5929.63%)
Mutual labels:  alert, notification
React Notie
Simple notifications for react
Stars: ✭ 27 (+0%)
Mutual labels:  alert, notification
janitor
Availability monitoring and alerting for IOT devices
Stars: ✭ 55 (+103.7%)
Mutual labels:  alert, notification
Vue Toastify
🔥 Simple, extendable, dependency free notification plugin. 🔥
Stars: ✭ 126 (+366.67%)
Mutual labels:  alert, notification
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 (+537.04%)
Mutual labels:  alert, notification
growl-alert
A simple growl like notification system.
Stars: ✭ 14 (-48.15%)
Mutual labels:  alert, notification
notice.js
💯 Javascript notification library
Stars: ✭ 25 (-7.41%)
Mutual labels:  alert, notification
snmp notifier
A webhook to relay Prometheus alerts as SNMP traps, because sometimes, you have to deal with legacy
Stars: ✭ 33 (+22.22%)
Mutual labels:  alert, notification
Fftoast
A very powerful iOS message notifications and AlertView extensions. It can be easily realized from the top of the screen, the bottom of the screen and the middle of the screen pops up a notification. You can easily customize the pop-up View.
Stars: ✭ 649 (+2303.7%)
Mutual labels:  alert, notification
Swiftentrykit
SwiftEntryKit is a presentation library for iOS. It can be used to easily display overlays within your iOS apps.
Stars: ✭ 5,706 (+21033.33%)
Mutual labels:  alert, notification
Notie
🔔 a clean and simple notification, input, and selection suite for javascript, with no dependencies
Stars: ✭ 6,170 (+22751.85%)
Mutual labels:  alert, notification
Yii2 Slack Log
Pretty Slack log target for Yii 2
Stars: ✭ 24 (-11.11%)
Mutual labels:  notification
Tabulate
Table Maker for Modern C++
Stars: ✭ 862 (+3092.59%)
Mutual labels:  view
Yii2 Telegram Log
Telegram log target for Yii 2
Stars: ✭ 24 (-11.11%)
Mutual labels:  notification
Notification
notification with socket.io
Stars: ✭ 24 (-11.11%)
Mutual labels:  notification
Mylittlecanvas
🎨Need to create a custom view ? You don't know how to use Canvas, use MyLittleCanvas instead !
Stars: ✭ 870 (+3122.22%)
Mutual labels:  view
Fingereyes Xr
FingerEyes-Xr for HTML5, A JavaScript library for building professional GIS System.
Stars: ✭ 9 (-66.67%)
Mutual labels:  view
Partially useful
📑 👀 Helps identifying partials in verbose HTML source code.
Stars: ✭ 23 (-14.81%)
Mutual labels:  view

GCNotificationView

Version License Platform Swift 3.0

Update Note

GCNotificationView now provides you to customize following things.

  • Text color
  • Delay
  • Duration

Intoduction

GCNotificationView is simple but very useful toast message view for iOS. You can easily set message and show it to user with a single method call. You can change it's location wherever you want.

demo

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

GCNotificationView is written in Swift 3. Compatible with iOS 8.0+

Installation

GCNotificationView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "GCNotificationView"

Usage

First you need to import GCNotificationView

import GCNotificationView

Then all you need to do to use GCNotificationView is simply call the method with your message.

GCNotificationView().show(message: "Hello, World!")

Or you can customize toast view with your own favor.

// Customize notification view on initialize
var notificationView = GCNotificationView()
notificationView.duration = 0.3
notificationView.delay = 3.0
notificationView.yPoint = 0.0
notificationView.bgColor = .orange
notificationView.textColor = .white

notificationView.show(message: "Hello, World!")

// Customize notification view on show
GCNotificationView()
    .change(duration: 0.3)
    .change(delay: 3.0)
    .change(yPoint: 0.0)
    .change(bgColor: .orange)
    .change(textColor: .white)
    .show(message: "Hello, World!")

Done! Super easy and super simple.

These are the variables you can customize. If you don't mention these variables, it will automatically set as default values.

var duration: Double    // Time in second for toast to animating (Default is 0.3)
var delay: Double       // Time in second for toast to present (Default is 3.0)
var yPoint: CGFloat     // Position of the toast view on y-axis (Default is 0)
var bgColor: UIColor    // Background color of toast view (Default is light blue)
var textColor: UIColor  // Message color of toast (Default is white)

// Supports various initialization
GCNotificationView()
GCNotificationView(duration: 0.3, yPoint: 0)
GCNotificationView(delay: 3.0, yPoint: 0)
GCNotificationView(duration: 0.3, delay: 3.0, yPoint: 0)

Author

Junho, [email protected]

License

GCNotificationView is available under the MIT license. See the LICENSE file for more info.

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].