Get the latest tech news
How Apple Created a Custom iPhone Camera for F1
Mounted on Formula One cars and used at real events, the special module used an iPhone camera sensor and A-series chip to help capture the new movie's racing scenes.
These nimble vehicles are built to precise specs, and capturing racing footage from the driver’s point of view isn’t as simple as slapping a GoPro on and calling it a day. It also contained an iPhone battery and a neutral density filter over the camera to reduce the light entering the lens, giving film editors more control over exposure. When you have Apple bankrolling your film, it's apparently not out of bounds to ask the iPhone makers to craft a custom mini camera to mount on a race car.
Or read this on r/apple