Dimmer 2.2.0

Dimmer 2.2.0

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最后发布2018年11月
SPM支持 SPM

HFCoreUI 维护。



 
依赖项
UIViewKVO~> 2.0
FadeView~> 2.0
SnapKit>= 0
 

Dimmer 2.2.0

  • DragonCherry

Dimmer

一个易于扩展的库,支持在 UIView 和 UIViewController 上实现灰屏功能。

示例

To dim view,
view.dim() / view.undim()

To dim a view with filling direction and size,
view.dim(.fromTop, ratio: 0.5)

To show loading view,
view.showLoading() / view.hideLoading()

To show loading view with indicator style,
view.showLoading(style: .whiteLarge) / view.hideLoading()

安装

Dimmer 可通过 CocoaPods 获取。要安装它,只需将以下行添加到您的 Podfile 中

pod "Dimmer"