我现在这个问题发布了更多的时间,但我还没有解决我的问题。在我的情况下,foregroundColor不起作用。 Ring不会以darkGray颜色显示,即使foregroundColor也不会选择任何颜色。请查看我的代码并帮助我。由于SVProgressHud环/前景色IOS
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()
输出看到我更新的答案。 –