我現在這個問題發佈了更多的時間,但我還沒有解決我的問題。在我的情況下,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()
輸出看到我更新的答案。 –