Latest 1.1.7
Homepage https://github.com/dkcas11/CRNotifications
License MIT
Platforms ios 9.0
Frameworks UIKit
Authors

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 alt text alt text

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 :
.success
.error
.info

Example:

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 4
pod 'CRNotifications'
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]

Latest podspec

{
    "name": "CRNotifications",
    "version": "1.1.7",
    "summary": "Custom in-app notifications.",
    "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.",
    "homepage": "https://github.com/dkcas11/CRNotifications",
    "screenshots": [
        "https://camo.githubusercontent.com/8bb3b0d4e643c0adb2a048814c5319bf8a6aa413/687474703a2f2f693833312e70686f746f6275636b65742e636f6d2f616c62756d732f7a7a3233372f646b63617331312f737563636573732e6a7067",
        "https://camo.githubusercontent.com/4b560687cb85b5a0dbc7945c4f15bf79b19db730/687474703a2f2f693833312e70686f746f6275636b65742e636f6d2f616c62756d732f7a7a3233372f646b63617331312f6572726f722e6a7067",
        "https://camo.githubusercontent.com/5d60f3db58199f8fc5909e341c0233b38343e2aa/687474703a2f2f693833312e70686f746f6275636b65742e636f6d2f616c62756d732f7a7a3233372f646b63617331312f696e666f2e6a7067"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Casper Riboe & Herrick Wolber as contributor": "[email protected]"
    },
    "source": {
        "git": "https://github.com/dkcas11/CRNotifications.git",
        "tag": "1.1.7"
    },
    "social_media_url": "https://twitter.com/dkcas11",
    "platforms": {
        "ios": "9.0"
    },
    "swift_version": "4.2",
    "source_files": "CRNotifications/Classes/**/*",
    "resources": "CRNotifications/Assets/*.xcassets",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This