Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bellapplab/notificator
Display notifications in your app using auto layout and Swift.
https://github.com/bellapplab/notificator
Last synced: about 2 months ago
JSON representation
Display notifications in your app using auto layout and Swift.
- Host: GitHub
- URL: https://github.com/bellapplab/notificator
- Owner: BellAppLab
- License: mit
- Created: 2016-01-22T14:23:44.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-12T16:20:43.000Z (about 8 years ago)
- Last Synced: 2024-10-19T03:03:18.013Z (3 months ago)
- Language: Swift
- Size: 43 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Notificator
Display notifications in your app using auto layout and Swift.
_v0.3.0_
## Usage
```swift
@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](http://stackoverflow.com/questions/39637123/cocoapods-app-xcworkspace-does-not-exists), 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](http://stackoverflow.com/questions/31080284/adding-several-pods-increases-ios-app-launch-time-by-10-seconds#31573908) 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. :wink:
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, [email protected]
## License
Notificator is available under the MIT license. See the LICENSE file for more info.