BFLoadingView 1.0.3

BFLoadingView 1.0.3

Matthias Nagel 维护。



BFLoadingView

Version License Platform

示例

要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install

用法

BFLoadingView 是一个漂亮的变形多边形活动指示器,设计为一个动画 HUD。尝试将其添加到您的 UIViewController 中,你应该得到以下结果

使用它!

首先,您需要通过添加 import BFLoadingView 来导入 BFLoadingView 库。

然后,当您想要显示动画活动指示器时,调用以下操作。渐变持续时间是 0.25 秒

showLoadingView()

但是,您也可以设置颜色。比如说这个

showLoadingView(backgroundColor: .red, triangle1Color: .black, triangle2Color: .blue, viewBackgroundColor: .yellow)

当您在代码中完成您的任务后,您也可以通过以下函数再次隐藏指示器

hideLoadingView()

这就是全部了。祝您玩得开心!

安装

BFLoadingView 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中

pod 'BFLoadingView'

作者

Matthias Nagel, [email protected]
Bitfactory GmbH

许可证

BFLoadingView在MIT许可证下可用。有关更多信息,请参见LICENSE文件。