СВПрогрессХуд Кольцо / Цвет Переднего плана IOS
Я сейчас этот вопрос опубликовал больше раз, но я не исправил свою проблему. В моем случае 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()
1 ответ
Решение
Просто вызовите этот метод только.
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()
получать вывод, как это