Can you disable/change the “swipe left when locked” mode to open camera?
While your locked iPhone is in your pocket, your camera app opens and starts taking pocket pics or videos, unbeknownst to you. Sound familiar?
Even if you can’t disable this setting completely, there is a way to fix the problem under Settings, Accessibility, and Touch, Haptics Touch and Touch Accommodations. The article below explains what these settings do and how to use them to prevent things like this from reoccurring.
Use Touch Accommodations with your iPhone, iPad, iPod touch, or Apple Watch - Apple Support