-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ömer Aslan
committed
Dec 10, 2015
1 parent
76bacad
commit 98372ea
Showing
2 changed files
with
43 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,62 @@ | ||
OEANotification | ||
============ | ||
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. | ||
# OEANotification | ||
|
||
[](https://github.com/OEASLAN/OEANotification) | ||
[](http://cocoapods.org/pods/OEANotification) | ||
[](http://cocoapods.org/pods/OEANotification) | ||
[](http://cocoapods.org/pods/OEANotification) | ||
[](https://developer.apple.com/swift/) | ||
|
||
# Installation | ||
|
||
## Cocoapods | ||
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. | ||
|
||
`pod 'OEANotification', '~> 0.1.0'` | ||
 | ||
|
||
# Usage | ||
|
||
Set a main view controller | ||
## Usage | ||
|
||
```swift | ||
import UIKit | ||
import OEANotification | ||
|
||
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) | ||
} | ||
} | ||
``` | ||
|
||
# License | ||
## Installation | ||
|
||
OEANotification is available through [CocoaPods](http://cocoapods.org). To install | ||
it, simply add the following line to your Podfile: | ||
|
||
```ruby | ||
pod "OEANotification" | ||
``` | ||
|
||
#### Roadmap | ||
|
||
- [X] Default Notification Types (Warning, Info, Success) | ||
- [ ] Custom Notification Type | ||
- [X] Device rotation handling | ||
- [X] Completion Handler based notification | ||
- [ ] 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. | ||
|
||
|
||
OEANotification is released under an MIT license. See LICENSE for more information. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.