-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from hyperoslo/feature/README
README
- Loading branch information
Showing
4 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
Binary file modified
BIN
-650 Bytes
(98%)
...isperDemo.xcworkspace/xcuserdata/RamonGilabert.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
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,13 +1,43 @@ | ||
# Whisper :dash: | ||
# Whisper :leaves: | ||
|
||
[![Version](https://img.shields.io/cocoapods/v/Whisper.svg?style=flat)](http://cocoadocs.org/docsets/Whisper) | ||
[![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. Shouts have an optional action that will be called if the user taps on it. Finally, if you want to set how long the Shout should be displayed, you have a duration property. | ||
|
||
There is no need to think about scroll view insets anymore, this will be handled automatically by Whisper. As and added bonus, when transitioning from one view controller to another, the next controllers offset will be adjusted like you would except. It just works! | ||
|
||
## 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 | ||
<API> | ||
let message = Message(title: "Enter your message here.", color: UIColor.redColor()) | ||
Whisper(message, to: navigationController, action: .Present) | ||
``` | ||
|
||
##### For a Shout: | ||
|
||
```swift | ||
let announcement = Announcement(title: "Your title", subtitle: "Your subtitle", image: UIImage(named: "avatar")) | ||
Shout(announcement, to: self) | ||
``` | ||
|
||
## Installation | ||
|
@@ -19,6 +49,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. | ||
- Custom actions inside Whispers and Shouts. | ||
- We are open to new and awesome ideas, contribute if you like! :) | ||
|
||
## Author | ||
|
||
Hyper Interaktiv AS, [email protected] | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.