UIView.animate in IntentsUI does not work

    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
       
        label.backgroundColor = UIColor.red
        UIView.animate(withDuration: 2.0, delay: 0, animations: {
            self.label.backgroundColor = UIColor.yellow
        })
    }


UIView.animate in IntentsUI does not work.

When view did appear in Siri, the label is already yellow, without animation.

and I put the animation code in "configureView()". It does not work neither.

Replies

Animations work in the IntentsUI extension. I tried your code, and this specific example will not animate from viewDidAppear in an iOS app either. Please file a bug report on this animation scenario not working.

I see.

I tried UIButton, and animation works well.

I forgot UILabel.backgroundColor is not Animatable.

Thanks.