Latest 1.0.9
License BSD
Platforms ios 9.0

Build Status
[GitHub language count]()

InAppNotificationFramework is library written in Swift 4 which handle the creation of a notification inside an iOS application.


  • [x] Handle notifications Data In app
  • [x] Handle notifications View In app
  • [x] Handle notifications Animations In app


  • iOS 8.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+
  • Xcode 8.3+
  • Swift 3.1+



CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

CocoaPods 1.1+ is required to build InAppNotificationFramework.

To integrate nAppNotificationFramework into your Xcode project using CocoaPods, specify it in your Podfile:

source ''
platform :ios, '10.0'

target '<Your Target Name>' do
pod 'InAppNotificationFramework.'

Then, run the following command:

$ pod install

Embedded Framework

  • Open up Terminal, cd into your top-level project directory, and run the following command "if" your project is not initialized as a git repository:
$ git init
  • Add InAppNotificationFramework as a git submodule by running the following command:
$ git submodule add
  • Open the new InAppNotificationFramework folder, and drag the InAppNotificationFramework.xcodeproj into the Project Navigator of your application’s Xcode project.

It should appear nested underneath your application’s blue project icon. Whether it is above or below all the other Xcode groups does not matter.

  • Select the InAppNotificationFramework.xcodeproj in the Project Navigator and verify the deployment target matches that of your application target.
  • Next, select your application project in the Project Navigator (blue project icon) to navigate to the target configuration window and select the application target under the "Targets" heading in the sidebar.
  • In the tab bar at the top of that window, open the "General" panel.
  • Click on the + button under the "Embedded Binaries" section.
  • You will see two different InAppNotificationFramework.xcodeproj folders each with two different versions of the InAppNotificationFramework.framework nested inside a Products folder.

It does not matter which Products folder you choose from, but it does matter whether you choose the top or bottom InAppNotificationFramework.framework.

  • Select the top InAppNotificationFramework.framework for iOS and the bottom one for OS X.

  • And that’s it!

The InAppNotificationFramework.framework is automagically added as a target dependency, linked framework and embedded framework in a copy files build phase which is all you need to build on the simulator and a device.


First you’ll need to create one or many Notification Data object.
This object contains the notifications data like:
How many second it will be shown

let notif1 = NotificationData() = "id4342"
notif1.delay = 5
notif1.title = "New message from Henri GIL"
notif1.message = "Le Lorem Ipsum est simplement du faux texte employé dans la"
notif1.thumbnailUrl = "thumb"
notif1.contentImage = "rotortrade_logo4"
notif1.animationStyle = .top

Then you’ll just need to add the notification to the queue with the following code:

InAppNotification.shared.addNotification(notification: notif1)

In order to get the callback when the user tap on your notification and get which notifications has been tapped, you’ll need to add an observer to your controller.

NotificationCenter.default.addObserver(self, selector: #selector(notificationsHandler), name: Notification.Name("notificationTapped") , object: nil)

The NotificationData object will be in the Notification.object property. Just cast it and you’ll be able to get which notification has been tapped.

@objc func notificationsHandler(notif: Notification) {

if let notification = notif.object as? NotificationData {


Latest podspec

    "name": "InAppNotificationFramework",
    "version": "1.0.9",
    "license": "BSD",
    "summary": "Gather, stack, display, app notifications as a single list",
    "homepage": "",
    "authors": {
        "4A MOC Dream Team": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.0.9"
    "platforms": {
        "ios": "9.0"
    "source_files": "InAppNotificationFramework/*.swift",
    "pushed_with_swift_version": "4.0.2"

Pin It on Pinterest

Share This