Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/minmao-hub/soundwaveanimation
音波律动动画
https://github.com/minmao-hub/soundwaveanimation
Last synced: 1 day ago
JSON representation
音波律动动画
- Host: GitHub
- URL: https://github.com/minmao-hub/soundwaveanimation
- Owner: MinMao-Hub
- Created: 2021-10-20T08:25:02.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-26T13:25:27.000Z (about 3 years ago)
- Last Synced: 2024-11-05T19:59:38.826Z (about 2 months ago)
- Language: Swift
- Size: 1.06 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SoundWaveAnimation
音波律动动画# Usage
```swift
let view = SoundWaveAnimationView(frame: CGRect(x: 10, y: 80, width: 70, height: 40))
view.waveCount = 5
view.animationType = .center
view.waveWidth = 10
view.waveHeight = 40
view.waveDuration = 0.5
view.instanceDelay = 0.1
self.view.addSubview(view)
view.startAnimation()```
***PS:*** 音波间距是根据`SoundWaveAnimationView `视图总宽度计算得来,所以需要设置合适的宽度
# Example
![图](./animated.gif)