iOS 实现百度外卖的头像波浪效果

1,785 阅读1分钟
原文链接: github.com

YXWaveView

Carthage compatible
Version
License
Platform

A water wave animation view with a over view float.

ScreenShot

ScreenShot

Installl

CocoaPod

Podfile add this:

platform :ios, '8.0'

pod 'YXWaveView'

Run pod install

Carthage

github "yourtion/YXWaveView"

How to use

// Init
let frame = CGRect(x: 0, y: 50, width: self.view.bounds.size.width, height: 150)
let waterView = YXWaveView(frame: frame, color: UIColor.whiteColor())
waterView.addOverView(avatarView);

// Add OverView
waterView.addOverView(overView);

// Start
waterView.start()

// Stop
waterView.stop()

Detail Demo