Rotate subview in AlertController

I rotate a LoadingIndicatorView

    class LoadingIndicatorView: UIView {
        private let imageLoad: UIImageView

        init(image: UIImageView) {
            imageLoad = image
            super.init(frame: CGRect.zero)

            addSubview(imageLoad)
            imageLoad.autoPinEdgesToSuperviewEdges()

            startRotating(turnDuration: 5)
        }

        required init?(coder aDecoder: NSCoder) {
            fatalError("init(coder:) has not been implemented")
        }
    }

    extension UIView {
        func startRotating(turnDuration: CFTimeInterval) {
            let animate = CABasicAnimation(keyPath: "transform.rotation")
            animate.duration = turnDuration
            animate.repeatCount = Float.infinity
            animate.fromValue = 0.0
            animate.toValue = Float(Double.pi * 2.0)
            layer.add(animate, forKey: "animate loading indicator")
        }
    }

If i use LoadingIndicatorView as subview in another view, it works and i want to use this view as subview in AlertController, i did:

static func createLoadingIndicatorAlert() -> AlertController {
        let alert = AlertController(title: nil, message: nil, preferredStyle: .alert)
        alert.actionLayout = .vertical

        let visualStyle = alert.visualStyle
        visualStyle.width = 180
        visualStyle.backgroundColor = UIColor(red: 0.97, green: 0.97, blue: 0.97, alpha: 0.82)
        visualStyle.contentPadding = UIEdgeInsets.zero

        let image = SmallLoadingIndicatorView()
        alert.contentView.addSubview(image)
        image.autoPinEdgesToSuperviewEdges(with: UIEdgeInsetsMake(-topPaddingReset + 55, 55, 55, 55))
        alert.contentView.autoSetDimension(.height, toSize: -topPaddingReset + 180)

        return alert
    }

And i use this in Controller:

AlertController.createLoadingIndicatorAlert().present(animated: false, completion: nil)

But in alert my indicator doesn't rotate