Swift : Gamepad Buttons X Y A B

If seems that the default function of BUTTONB on a gamepad is to exit the app (AppleTV)
I have seen dozens of examples where this button is treated just like the others, so does anyone know how to DISABLE the exit funtion and have it work like the other 3?