This is a myth.

Aerosolized sprays contain components that can damage your air fryer basket. Over time, that can lead to flaking and breakage and contaminate your food. Make sure to stick to oil. You can use an oil spritzer or mister to get the coating you need without damaging your fryer.