Latest 1.4.3
License MIT
Platforms ios 8.4
Authors ,

An in-app notification banner for Swift.

Setup with Cocoapods (recommended setup)

  • Add the instructions below to your Podfile:
source ''
platform :ios, '9.0'

pod 'GTNotification', '0.2-fixed'
  • Then add import GTNotification at the top of your Swift class.

  • Finally compile and run and you will be good to go.

Otherwise you can also manually import the framework

Just drag and drop 'GTNotification/*.swift file(s) into your Xcode project and do not forget to check the checkbox entitled "Copy items if needed" and the appropriate checkboxe(s) in "Add to targets" section.


// Initialize a notification
let notification: GTNotification = GTNotification()
notification.title = "Welcome Notification"
notification.message = "Thank you for checking out GTNotificationView."
notification.position = GTNotificationPosition.Top
notification.animation = GTNotificationAnimation.Slide
notification.blurEnabled = true

// Perform a custom selector on tap
notification.addTarget(self, action: Selector("dismissNotification"))

// Set the notification's delegate
notification.delegate = self

// Show the notification

GTNotificationDelegate Methods

// MARK: GTNotificationDelegate Methods

func notificationDidDismiss(notification: GTNotification)
    // The notification was dismissed automatically
    NSLog("The notification was dismissed automatically")

func notificationFontForTitleLabel(notification: GTNotification) -> UIFont
    return UIFont(name: "AvenirNext-Medium", size: 16.0)!

func notificationFontForMessageLabel(notification: GTNotification) -> UIFont
    return UIFont(name: "AvenirNext-Regular", size: 13.0)!


Dark Blur

Dark Blur Notification

Light Blur

Light Blur Notification

Extra Light Blur

Extra Light Blur Notification

Solid Color

Solid Color Notification

Latest podspec

    "name": "GTNotification",
    "version": "1.4.3",
    "summary": "[King-Wizard version] An in app customizable notification banner for Swift.",
    "description": "Which slides/fades automatically/manually from the top/bottom of the screen.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Mathieu White": "",
        "King-Wizard": "[email protected]"
    "social_media_url": "",
    "platforms": {
        "ios": "8.4"
    "source": {
        "git": "",
        "tag": "1.4.3"
    "source_files": "GTNotification/*.swift"

Pin It on Pinterest

Share This