Waver

像 Siri 一样摇摆。「Siri like waver」

Github星跟蹤圖

#Waver

Build Status

A Siri like wave effect

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.framework

You will need LLVM 3.0 or later in order to build Waver.

Usage

Cocoapods

CocoaPods 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

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.

SpecialThanks

https://github.com/stefanceriu/SCSiriWaveformView

主要指標

概覽
名稱與所有者kevinzhow/Waver
主編程語言Objective-C
編程語言Objective-C (語言數: 2)
平台
許可證MIT License
所有者活动
創建於2014-12-14 06:23:01
推送於2018-01-04 00:32:20
最后一次提交2015-08-25 16:17:56
發布數3
最新版本名稱0.3.0 (發布於 )
第一版名稱0.1.0 (發布於 )
用户参与
星數794
關注者數21
派生數111
提交數33
已啟用問題?
問題數11
打開的問題數6
拉請求數2
打開的拉請求數2
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?