no
Apple XS does not support infrared function, including X\/XR\/XSMAX have no infrared sensor.
What is infrared function?
Infrared radiation is electromagnetic radiation with a wavelength exceeding that of red visible light. Mobile phone infrared can control the TV, air conditioning and computer or other mobile phone wireless connection, provided that both sides have infrared.