-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
README #7
README #7
Changes from 3 commits
7845e1b
be0191a
5c1f9bc
b711373
572d717
6941af3
cb30f10
e3d3333
bab2cf5
2c1ea7b
bd16d4a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,44 @@ | |
[![License](https://img.shields.io/cocoapods/l/Whisper.svg?style=flat)](http://cocoadocs.org/docsets/Whisper) | ||
[![Platform](https://img.shields.io/cocoapods/p/Whisper.svg?style=flat)](http://cocoadocs.org/docsets/Whisper) | ||
|
||
## Description | ||
|
||
Break the silence of your UI whispering or shouting at it. **Whisper** is a component that will make the task of display messages and in-app notifications simple. It has two different views inside. | ||
|
||
#### Whispers | ||
|
||
![Whisper](https://github.com/hyperoslo/Whisper/blob/feature/README/Resources/permanent-whisper.png) | ||
|
||
Display a short message at the bottom of the navigation bar, this can be anything, from a "Great Job!" to an error message. It can have images or even a loader. | ||
|
||
#### Shouts | ||
|
||
![In-App](https://github.com/hyperoslo/Whisper/blob/feature/README/Resources/in-app-notification.png) | ||
|
||
Fully customizable, from colors to fonts. This view will have an optional action that will be called if the user taps the view. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I think it's a bit confusing to refer to it as a view in this context, maybe something like.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
The factory will handle the inset of the scroll view and adjust it to fit the Whisper, if you move from one view controller to another, it will animate the next controller's offset too. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OUTDATED, outrageous! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now it's fine! |
||
|
||
## Usage | ||
|
||
The usage of the component is so simple, you just create a message in the case of Whisper, or an announcement in the case of a Shout, it's done like this: | ||
|
||
##### For a Whisper: | ||
|
||
```swift | ||
let message = Message(title: "Enter your message here.", color: UIColor.redColor()) | ||
Whisper(message, to: navigationController, action: .Present) | ||
``` | ||
|
||
##### For a Shout: | ||
|
||
```swift | ||
<API> | ||
let announcement = Announcement(title: "Your title", subtitle: "Your subtitle", image: UIImage(named: "avatar")) | ||
Shout(announcement, to: self) | ||
``` | ||
|
||
Shouts let you add more properties like duration or action. With this, you'll get notified when the user **taps** the view. | ||
|
||
## Installation | ||
|
||
**Whisper** is available through [CocoaPods](http://cocoapods.org). To install | ||
|
@@ -19,6 +51,16 @@ it, simply add the following line to your Podfile: | |
pod 'Whisper' | ||
``` | ||
|
||
## Roadmap | ||
|
||
In the future the idea is to keep improving and add some features: | ||
|
||
- Improve the offset detection and animation. | ||
- Add more UI related components into Whisper. | ||
- More customization points and more sizes for each whisper. | ||
- Actions to Whispers and Shouts. | ||
- We are open to new and awesome ideas, contribute if you like! :) | ||
|
||
## Author | ||
|
||
Hyper Interaktiv AS, ios@hyper.no | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Break the silence of your UI whispering or shouting at it.
Shouldn't it be a comma in there somewhere? 😎
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh really? I don't see it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well sorta.