Does 'erase all content and settings' actually erase all data? I recently decided to sell two of my iPhone's (5 and 6s) and I used the 'erase all content and settings' option to wipe and factory reset my iPhone. Now, I'm a little concerned whether this is enough to prevent any data retrieval on my iPhone's and I was wondering if a simple reset in iPhone's settings can provide the same effects as that of an overwritten data? If not, what should I do? Is there a method for overwriting data on an iPhone as there is for macOS?
As long as you follow the steps provided by Apple to erase your iOS device, it will erase all data on the device.  A simple 'reset' of the device is not the same as 'erase all contents and settings'.

Follow these steps:


If you paired an Apple Watch with your iPhone, unpair your Apple Watch.
Back up your device.
Sign out of iCloud and the iTunes &amp; App Store. 


If you're using iOS 10.3 or later, tap Settings &gt; [your name]. Scroll down and tap Sign Out. Enter your Apple ID password and tap Turn Off.
If you're using iOS 10.2 or earlier, tap Settings &gt; iCloud &gt; Sign Out. Tap Sign Out again, then tap Delete from My [device] and enter your Apple ID password. Then go to Settings &gt; iTunes &amp; App Store &gt; Apple ID &gt; Sign Out.

Go back to Settings and tap General &gt; Reset &gt; Erase All Content and Settings. If you turned on Find My iPhone, you might need to enter your Apple ID and password.
If asked for your device passcode or Restrictions passcode, enter it. Then tap Erase [device].
If you're switching to a non-Apple phone, deregister iMessage.
Contact your carrier for help transferring service to a new owner. If you aren't using a SIM card with your device, you can contact them to get help transferring service to the new owner.