Hi hevelier,
We recommend you try the steps in the link below since you're having problems with the camera on your iPhone.
If the camera or flash on your iPhone, iPad, or iPod touch isn't working
Next, we'd like to show you how to perform the recommended troubleshooting steps via the link above. Please click to open the link, then read through the steps in the section titled "Remove case, accessory, or film and test."
1) Remove any case, accessory, or film that might block the camera or flash or that places a magnet near the camera.
2) Test the camera by trying to take a photo.
3) Test the LED flash:
1) Try the flashlight in Control Center on your iPhone or Control Center on your iPad. On an iPhone X or later or an iPad, swipe down from the upper-right corner of the screen. On an iPhone 8 or earlier, swipe up from the bottom edge of any screen.
2) Tap the Flashlight button .
If the flash works only sometimes, open the Camera app and tap the flash button to choose a different setting.
We recommend the steps above because they will show you what to do if your photos are blurry or the camera screen is black.
If you’re still experiencing the same issue, try the steps below.
If you prefer, here are some more steps you can try on your own if the camera isn't working. You might still need to contact Apple Support after following these steps.
1) If the photo is blurry, clean the front and back camera lenses with a microfiber cloth. If you see dirt or debris inside the lens or if the camera lens appears to be misaligned or blocked, contact Apple Support to discuss service options.
2) Restart your iPhone, iPad, or iPod touch.
3) Test the camera again by taking a photo. If your device has a front and rear camera, check if one or both isn’t working. To switch cameras, tap the rotate button .
Please let us know the outcome after giving the above steps a try.
Thanks for using the Apple Support Communities.
Cheers!