Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevinzhow/Waver
Siri like waver
https://github.com/kevinzhow/Waver
Last synced: about 1 month ago
JSON representation
Siri like waver
- Host: GitHub
- URL: https://github.com/kevinzhow/Waver
- Owner: kevinzhow
- License: mit
- Created: 2014-12-14T06:23:01.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-04T00:32:20.000Z (almost 7 years ago)
- Last Synced: 2024-10-31T16:12:39.407Z (about 1 month ago)
- Language: Objective-C
- Size: 202 KB
- Stars: 791
- Watchers: 21
- Forks: 114
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - Waver - Siri like waver (etc)
- awesome - Waver - Siri like waver (etc)
- awesome - Waver - A Siri like wave effect. (OOM-Leaks-Crash / Waver)
README
#Waver
[![Build Status](https://travis-ci.org/kevinzhow/PNChart.png?branch=master)](https://travis-ci.org/kevinzhow/PNChart)
A Siri like wave effect
[![](https://dl.dropboxusercontent.com/u/1599662/waver/waver.png)](https://dl.dropboxusercontent.com/u/1599662/waver/wave.mov)
## Requirements
Waver works on iOS 7.0 and later version and is compatible with ARC projects. It depends on the following Apple frameworks, which should already be included with most Xcode templates:
* Foundation.framework
* UIKit.framework
* CoreGraphics.framework
* QuartzCore.frameworkYou will need LLVM 3.0 or later in order to build Waver.
## Usage
### Cocoapods
[CocoaPods](http://cocoapods.org) is the recommended way to add Waver to your project.
1. Add a pod entry for Waver to your Podfile `pod 'Waver', '~> 0.2.0'`
2. Install the pod(s) by running `pod install`.
3. Include Waver wherever you need it with `#import "Waver.h"`.### Or Copy the Waver folder to your project
## Example
```objective-c
Waver * waver = [[Waver alloc] initWithFrame:CGRectMake(0, CGRectGetHeight(self.view.bounds)/2.0 - 50.0, CGRectGetWidth(self.view.bounds), 100.0)];__weak Waver * weakWaver = waver;
waver.waverLevelCallback = ^() {[self.recorder updateMeters];
CGFloat normalizedValue = pow (10, [self.recorder averagePowerForChannel:0] / 50);
weakWaver.level = normalizedValue;
};
[self.view addSubview:waver];```
## License
This code is distributed under the terms and conditions of the [MIT license](LICENSE).
## SpecialThanks
https://github.com/stefanceriu/SCSiriWaveformView