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?
已存档?
是复刻?
已锁定?
是镜像?
是私有?