Description
CRNotifications are custom in-app notifications with 3 types of layouts. The notifications will animate in and out. They will hide when they are clicked on or with an automatic dismissal.
CRNotifications alternatives and similar libraries
Based on the "Alert" category.
Alternatively, view CRNotifications alternatives based on common mentions on social networks and blogs.
-
SwiftMessages
A very flexible message bar for iOS written in Swift. -
SwiftEntryKit
SwiftEntryKit is a presentation library for iOS. It can be used to easily display overlays within your iOS apps. -
Alerts Pickers
Advanced usage of UIAlertController and pickers based on it: Telegram, Contacts, Location, PhotoLibrary, Country, Phone Code, Currency, Date... -
SCLAlertView
Beautiful animated Alert View. Written in Swift -
NotificationBanner
The easiest way to display highly customizable in app notification banners in iOS -
PopupDialog
A simple, customizable popup dialog for iOS written in Swift. Replaces UIAlertController alert style. -
Whisper
:mega: Whisper is a component that will make the task of display messages and in-app notifications simple. It has three different views inside -
XLActionController
Fully customizable and extensible action sheet controller written in Swift -
PMAlertController
PMAlertController is a great and customizable alert that can substitute UIAlertController -
SweetAlert
Live animated Alert View for iOS written in Swift -
Jelly
๐ - Jelly is a library for animated, non-interactive & interactive viewcontroller transitions and presentations with the focus on a simple and yet flexible API. -
CDAlertView
Highly customizable alertview and alert/notification/success/error/alarm popup written in Swift -
Queuer
Queuer is a queue manager, built on top of OperationQueue and Dispatch (aka GCD). -
SPAlert
Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets. [Moved to: https://github.com/varabeis/SPAlert] -
StatusAlert
Display Apple system-like self-hiding status alerts. It is well suited for notifying user without interrupting user flow in iOS-like way. -
SwiftOverlays
SwiftOverlays is a Swift GUI library for displaying various popups and notifications -
SPIndicator
Floating indicator, mimicrate to indicator which appear when silent mode switched. Can be present from top and bottom. Interactive with gesters. -
GoogleWearAlert
An Android Wear style confirmation view for iOS -
Sheet
๐ Actionsheet with navigation features such as the Flipboard App -
Toast-Swift
A Swift Toast view - iOS 14 style and newer - built with UIKit. ๐ -
AwaitToast
๐ An async waiting toast with basic toast. Inspired by facebook posting toast -
Zingle
Zingle โ An alert will display underneath your UINavigationBar ๐ -
FCAlertView
FCAlertView is a Flat Customizable AlertView for iOS (Swift) -
Indicate
Interactive notification pop-over (aka "Toast) modeled after the iOS AirPods and Apple Pencil indicator. -
MaterialActionSheetController
A Google like action sheet for iOS written in Swift. -
ALRT
An easier constructor for UIAlertController. Present an alert from anywhere. -
Notie
In-app notification in Swift, with customizable buttons and input text field. -
HYAlertController
A Simple And Minimalist iOS AlertController -
KRAlertController
A beautiful alert controller for your iOS. -
GSAlert
[deprecated] UIAlertController support iOS 7+ and written in swift. -
SwiftAlertController
Nice and easy UIAlertController extensions
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of CRNotifications or a related project?
README
CRNotifications
CRNotifications are custom in-app notifications with 3 types of layouts. The notifications will animate in and out. They will hide when they are clicked on or with an automatic dismissal.
Screenshots
Notifications types
Success | Error | Info |
---|---|---|
[alt text](cr-success.png "Success") | [alt text](cr-error.png "Error") | [alt text](cr-info.png "Info") |
How to use
Call CRNotifications.showNotification
with a title, message, notification type and a time for how long the notification should appear. Should the notification not disappear automatically use a time of 0
. You may also pass a completion block that is executed once the notification disappears.
Built-in notification types are :
```.error```
```.info```
Example:
```swift
CRNotifications.showNotification(type: CRNotifications.success, title: "Success!", message: "You successfully showed this notification.", dismissDelay: 3)
It is also possible to customize the notifications and provide your own custom style either by the method
showNotification(textColor:, backgroundColor: UIColor, image: UIImage?, title: String, message: String, dismissDelay: TimeInterval)
or by conforming to the CRNotificationType
protocol:
protocol CRNotificationType {
var textColor: UIColor { get }
var backgroundColor: UIColor { get }
var image: UIImage? { get }
}
Installation
Cocoapods install
Swift 5
pod 'CRNotifications'
Swift 4.2
pod 'CRNotifications', :git => 'https://github.com/dkcas11/CRNotifications.git', :branch => 'swift4-2'
Swift 3
pod 'CRNotifications', :git => 'https://github.com/dkcas11/CRNotifications.git', :branch => 'swift3'
Manual install
Drag the CRNotifications folder into your project and you are good to go.
Author & Contributors
Casper Riboe (Author)
Facebook : Casper Riboe Twitter : dkcas11 Mail : [email protected]
Herrick Wolber (Contribution)
Twitter : estar2005 Github : Rico237 Mail : [email protected]