tangjianfeng
tangjianfeng
WisdomHUD [0.3.4]已经发布,支持动画视图自定义。 明天早上可以集成 0.3.4 版本做动画自定义。 案例: let animationVI = WisdomHUDImageWaterView(size: 29, barStyle: .dark) animationVI.setProgreTextColor(color: .red) animationVI.setProgreValue(value: 70) WisdomHUD.showLoading(text: "正在加载中", loadingStyle: loadingStyle, barStyle: sceneBarStyle).setTimeout(time: 8) { _ in }.setAnimation(view: animationVI)
目前WisdomHUD支持追加更改,使用案例如下: ---> // 第一种解决方案: 接收设置协议对象:WisdomHUDLoadingContextable let contextable: WisdomHUDLoadingContextable = WisdomHUD.showLoading(text: "正在加载中", loadingStyle: .rotate, barStyle: .dark) DispatchQueue.main.asyncAfter(deadline: DispatchTime.now()+5, execute: { // 5秒后, 文字改成红色, 文字大小改成 15号 字体 contextable.setTextColor(color: .red).setTextFont(font: UIFont.boldSystemFont(ofSize: 15)) })...
新版本已更新,请集成使用 WisdomHUD (0.3.3) , 调用 WisdomHUDBaseContextable 协议方法,更新最新文字内容: // Set the Context text new @discardableResult @objc func setUpdateText(text: String)->Self 有问题欢迎加QQ交流:497609288