空白 0.3.6

空白 0.3.6

ablettx 维护。



空白 0.3.6

  • ablett

Blank

CI Status Version License Platform

示例

import Blank

    var num = 0
    let blank: Blank = Blank(type: .fail, image:Blank.image(type: .fail), title: "请求失败", desc: "10014") { tap in
        num += 1
        print("clicked:\(num)")
        self.view.blankConfReset()
    }
    
    view.setBlank(blank)
    DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
        self.view.reloadBlank()
    }
    
    DispatchQueue.main.asyncAfter(deadline: .now()+2) {
        self.view.updateBlankConf { (conf) in
            conf.backgorundColor = .black
            conf.titleFont = .boldSystemFont(ofSize: 14);
            conf.titleColor = .white
            conf.descFont = .boldSystemFont(ofSize: 14);
            conf.descColor = .white
            conf.verticalOffset = 200
        }
    }

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

需求

安装

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

pod 'Blank'

作者

ablett, [email protected]

许可证

空白区域采用MIT许可证。更多信息请参阅LICENSE文件。