SVProgressHud戒指/前景颜色IOS

Jon*_*ker 4 ios svprogresshud swift

我现在将此问题发布了更多次,但我还没有解决我的问题。在我的情况下,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()
Run Code Online (Sandbox Code Playgroud)

我的SVProgressHud的ScreenShot

Pra*_*iya 5

仅调用此方法。

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()
Run Code Online (Sandbox Code Playgroud)

获得输出像这样