iOS - MBProgressHUD безельПросмотреть, чтобы быть прозрачным - PullRequest
0 голосов
/ 14 марта 2019

Я использую MBProgressHUD и хочу, чтобы bezelView стал прозрачным.

import UIKit
import MBProgressHUD

class ProgressBarManager {
   func showProgressBar() {
    guard let testView = UIApplication.shared.windows.last else { return }        
    let hud = MBProgressHUD.showAdded(to: testView, animated: true)

    hud.bezelView.layer.cornerRadius = 5
    hud.bezelView.backgroundColor = .clear
    hud.backgroundView.style = .solidColor
    hud.backgroundView.color = UIColor(white: 0, alpha: 0.3)

 }
}

Тем не менее, в рамке просмотра все еще отображается:

enter image description here

Есть ли способ скрыть это?

...