Display notifications in your app using auto layout and Swift.
Swift
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Example
Source
.gitignore
.travis.yml
LICENSE
README.md

README.md

Notificator

Display notifications in your app using auto layout and Swift.

v0.3.0

Usage

@IBAction func show(_ sender: UIButton) {
    let view = NotificatorView()
    view.dismissesWithTap = false
    view.notificator = self
    view.backgroundColor = UIColor.green
    self.notify(view: view,
                expiringAfter: 1)
}

func didTapNotification(_ notificatorView: NotificatorView) {
    print("Did tap")
}

Requirements

  • iOS 8.0+
  • Swift 3.0

Installation

Cocoapods

Because of this, I've dropped support for Cocoapods on this repo. I cannot have production code rely on a dependency manager that breaks this badly.

Git Submodules

Why submodules, you ask?

Following this thread and other similar to it, and given that Cocoapods only works with Swift by adding the use_frameworks! directive, there's a strong case for not bloating the app up with too many frameworks. Although git submodules are a bit trickier to work with, the burden of adding dependencies should weigh on the developer, not on the user. 😉

To install Notificator using git submodules:

cd toYourProjectsFolder
git submodule add -b submodule --name Notificator https://github.com/BellAppLab/Notificator.git

Navigate to the new Notificator folder and drag the Source folder to your Xcode project.

Author

Bell App Lab, apps@bellapplab.com

License

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