disable highlight on tvOS UIButton

Viewed 13

I have a UIButton in a UIView, and when it gets highlighted i cant see the view cause all the background goes white.

How can i solve it?

example

I tried whit this but not working:

 @IBOutlet weak var outstandingButton: UIButton!

    override func didUpdateFocus(in context: UIFocusUpdateContext, with coordinator: UIFocusAnimationCoordinator) {
        super.didUpdateFocus(in: context, with: coordinator)

        if context.nextFocusedView == outstandingButton {
            //not working any of this
            //outstandingButton.alpha = 0.0
            //outstandingButton.backgroundColor = .clear
        } else {
        }
    }
1 Answers
Related