AudioIndicatorBars 0.0.2

AudioIndicatorBars 0.0.2

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最后发布2017年2月
SwiftSwift 版本3.0
SPM支持 SPM

Leonardo Cardoso 维护。



  • Leonardo Cardoso

AudioIndicatorBars

音频指示条 用于 iOStvOS

指示您的应用程序用户正在播放哪个音频。就像播客应用一样。

索引


要求和详细信息

  • iOS 9.0+ / tvOS 9.0+
  • Xcode 8.0+
  • 使用 Swift 3.0 构建

安装

手动

您只需将 AudioIndicatorBars 文件夹拖放到 Xcode 项目中(请确保启用“按需复制项”和“创建组”)。

用法

实例化

编程

let indicator: AudioIndicatorBarsView =
            AudioIndicatorBarsView(
                rect: CGRect,
                barsCount: Int,
                cornerRadius: CGFloat,
                color: UIColor
        )

// then add indicator to your view

界面构建器

在身份检查器上添加具有自定义类的视图
IB1.png
身份检查器 属性检查器 结果
IB1.png IB2.png example1.gif

虽然这个 GIF 并没有看起来那么平滑😀. 您可以在 图片 文件夹中查看视频。

这里有一些可能性。

example2.gif

动作

开始

indicator.start()

停止

indicator.stop()

信息和联系

@LeonardoCardoso 开发。

通过 Twitter @leocardz 或通过电子邮件 [email protected] 联系我。

许可证

The MIT License (MIT)

Copyright (c) 2016 Leonardo Cardoso

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.