我现在这个问题张贴了很多次,但我还没有解决我的问题。在我的例子中,foregroundColor不起作用。环是不出现与darkGray的颜色,即使是foregroundColor没有选择任何颜色。请查看我的代码并帮助我。谢谢
import SVProgressHUD
//import SVProgressHud on top
SVProgressHUD.setDefaultStyle(.custom)
SVProgressHUD.setDefaultMaskType(.custom)
SVProgressHUD.setMinimumSize(CGSize(width: 60, height: 60))
SVProgressHUD.setRingThickness(3)
SVProgressHUD.setRingNoTextRadius(20)
SVProgressHUD.setBackgroundColor(UIColor.white)
SVProgressHUD.setForegroundColor(UIColor.darkGray)
SVProgressHUD.show()

发布于 2017-09-06 11:09:59
只需调用此方法即可。
SVProgressHUD.setDefaultStyle(.custom)
SVProgressHUD.setDefaultMaskType(.custom)
SVProgressHUD.setForegroundColor(UIColor.red) //Ring Color
SVProgressHUD.setBackgroundColor(UIColor.yellow) //HUD Color
SVProgressHUD.setBackgroundLayerColor(UIColor.green) //Background Color
SVProgressHUD.show()获得像这这样的输出
https://stackoverflow.com/questions/46073269
复制相似问题