Latest 0.2.1
Homepage https://github.com/ipagong/PGNotificationView
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

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

appetize.io demo : [ here ]

It’s notification view creator (uiwindow).

just send your custom view and then some setups, and call show().

it’s’ very comfortable notificationview.

1. create > show


NotificationView.create(YourNotiView("hello")).show()

2. create > setup(duration) > show


NotificationView.create(YourNotiView("hello")).setupDuration(present: 0.3, dismiss: 0.3, expose: 3).show()

3. create > setup(touch) > show


NotificationView.create(YourNotiView("hello")).whenTouch { view in
    print("third notification touched.")
}.show()

4. create > setup(completion) > show


NotificationView.create(YourNotiView("hello")).whenCompletion { completed in
    print("hide completion.")
}.show()

5. create > combine setups > show


// you can choose setup methods.
NotificationView.create(YourNotiView("hello"))
  .setupDuration(present: 0.3, dismiss: 0.3, expose: 3)
  .whenTouch { view in
      print("third notification touched.")
  }.whenCompletion { completed in
      print("hide completion.")
  }.show()

6. find old notification view that not deinit yet.


//find last.
NotificationView.find(YourNotiView.self)?.hide()

//find all type.
NotificationView.findAll(YourNotiView.self)?.forEach({ notiview in
    // do something.
})

Requirements

  • above ios 8.0
  • swift 3.0
  • with cocoapods

Installation

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

pod "PGNotificationView"

Author

ipagong, [email protected]

License

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

Latest podspec

{
    "name": "PGNotificationView",
    "version": "0.2.1",
    "summary": "Simple NotificationView Creator",
    "description": "you can create NotificationView(inApp) simply and you setup the NotificationView(inApp) easily.",
    "homepage": "https://github.com/ipagong/PGNotificationView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ipagong.dev": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ipagong/PGNotificationView.git",
        "tag": "0.2.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "PGNotificationView/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This