• Stars
    star
    791
  • Rank 57,045 (Top 2 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Siri like waver

#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

More Repositories

1

PNChart

A simple and beautiful chart lib used in Piner and CoinsMan for iOS
Objective-C
9,721
star
2

PNChart-Swift

A simple and beautiful chart lib used in Piner and CoinsMan for iOS(https://github.com/kevinzhow/PNChart) Swift Implementation
Swift
1,373
star
3

RealtimeGradientText

Gradient Text in Real
Swift
636
star
4

pop-handapp

POP Handapp
Objective-C
314
star
5

NaughtyImageView

UIImageView Can Animate Sprite Image
Swift
255
star
6

ios-with-girlfriend

Demo For iOS With GirlFriend
Swift
107
star
7

RichTextView

RichTextView based On TextKit
Swift
67
star
8

producter_fuse

Producter Markup App Made With Fuse http://producter.io
JavaScript
48
star
9

wechatpay-swift

微信支付 V3 API 的 Swift 服务端 SDK
Swift
47
star
10

LiveBlend

Live overlay effect on image
Objective-C
35
star
11

Lolita

Meet with Lolita
Swift
32
star
12

albatross

A Swift webhook handler
Swift
25
star
13

Waver-Android

Android implementation of Waver
Java
16
star
14

swiftwasm-host-app-demo

This is a demo project for Write WebAssembly in Swift and use it in Swift App
Swift
16
star
15

swift-on-server-tour

Sample code for Swift on Server Tour
Swift
12
star
16

Producter

Landing page for Producter
CSS
8
star
17

SafariAudioPlayer

A JS Audio Player for Safari with webkitAudioContext
JavaScript
4
star
18

micro-blog-demo

Swift
4
star
19

gomobile-lib-demo

gomobile with go mod
Objective-C
3
star
20

MPVDemo-macOS

Xamarin macOS Project to example how to use MPV to play video.
C#
3
star
21

MyConfigs

Configs Of My Macbook Pro
Vim Script
3
star
22

kotlin-native-library-demo

Kotlin
2
star
23

write-wasm-in-swift-demo

Swift
2
star
24

Leetcode-Swift

Leetcode practice in Swift language for fun.
Swift
2
star
25

kotlin_native_ios_demo

Swift
2
star
26

chainstory

Go
1
star
27

Filmie

Framer.js Prototype
JavaScript
1
star
28

readerlibdemo

Kotlin
1
star
29

baiducloudsigner-swift

A simple request signer for baidu cloud
Swift
1
star