Latest 0.2.0
Homepage https://github.com/OEASLAN/OEANotification
License MIT
Platforms ios 8.0, requires ARC
Authors

Version
License
Platform
Swift 2.1

OEANotification is an iOS library which provides to create notifications and customize them easily.
You can create notifications with just one line of code ,if you are bored UIAlertView.

Usage


class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        OEANotification.setDefaultViewController(self)
        // to create simple success notification
        OEANotification.notify("Test Title", subTitle: "Test SubTitle", image: nil, type: NotificationType.Success, isDismissable: true)
        // to create info notification
        //OEANotification.notify("Test Title", subTitle: "Test SubTitle", image: nil, type: NotificationType.Info, isDismissable: true)
        // to create warning notification
        //OEANotification.notify("Test Title", subTitle: "Test SubTitle", image: nil, type: NotificationType.Warning, isDismissable: true)
        // to create completion handler based notification
        OEANotification.notify("Test Title", subTitle: "Test Subtitle", image: nil, type: .Success, isDismissable: true, completion: { () -> Void in
                print("completed")
            }, touchHandler: nil)
        // to create touchHandler based notificaiton
        OEANotification.notify("Test Title", subTitle: "Test Subtitle", image: nil, type: .Success, isDismissable: true, completion: { () -> Void in
                print("completed")
            }) { () -> Void in
                print("touched event")
    }
}

Installation

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

pod "OEANotification"

Roadmap

  • [X] Default Notification Types (Warning, Info, Success)
  • [ ] Custom Notification Type
  • [X] Device rotation handling
  • [X] Completion Handler based notification
  • [X] View Tapped Handler based notification
  • [ ] Creating big example of OEANotification
  • [ ] UI Tests
  • [ ] Setup Travis

Author

Ömer Aslan, [email protected]

License

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

Latest podspec

{
    "name": "OEANotification",
    "version": "0.2.0",
    "summary": "OEANotification is the very flexible notification library.",
    "description": "This iOS library provides to create notifications and customize them easily.nYou can create notifications with just one line of code ,if you are bored UIAlertView.",
    "homepage": "https://github.com/OEASLAN/OEANotification",
    "license": "MIT",
    "authors": {
        "u00d6mer Aslan": "[email protected]"
    },
    "source": {
        "git": "https://github.com/OEASLAN/OEANotification.git",
        "tag": "0.2.0"
    },
    "social_media_url": "https://twitter.com/OEASLAN",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Classes/**/*",
    "resource_bundles": {
        "OEANotification": [
            "Resources/*.png"
        ]
    }
}

Pin It on Pinterest

Share This