Soon, iPhones will block texts while driving

Apple taking on Venmo, Boomerang with iOS 11
Apple taking on Venmo, Boomerang with iOS 11

Soon, Apple will introduce a new iPhone feature that will do away with that annoying -- and dangerous -- urge to look at a text message while you're driving.

The feature, called "Do Not Disturb While Driving," will be part of Apple's iOS 11, a new version of the operating software for Apple mobile devices.

Whenever the phone is connected to a car using either Bluetooth or a cable, or if the car is moving, the phone will withhold any notifications for things like text messages or news updates.

If someone does text you while you're driving, the phone can respond with an automatic message telling them you're driving and can't respond just now.

Related: Apple unveils an Amazon Echo competitor

The iPhone screen will also be locked to prevent drivers from using many of their apps while driving. Passengers who are just riding will have the ability to indicate that they are not driving and disable the feature.

Users will be able to see Apple Maps, Apple's navigation application, while driving -- though they will be unable to input destinations. Other navigation apps, like Google Maps, will also work, although not quite as easily.

apple do not disturb 2

Drivers will still be able to use Apple CarPlay, of course, in cars that are equipped with it. Apple CarPlay is a car interface specifically designed to allow drivers to hear and respond to text messages using voice commands and to safely use other iPhone features while driving. it's available from a number of automobile manufacturers, including General Motors (GM), Fiat Chrysler (FCAU), BMW and Honda (HMC), and works through a computer screen in the car.

Related: Most valuable brands: 9 American and 1 from China

Nissan has proposed adding a so-called Faraday cage to its cars. This would be a box built in to the car that would block radio transmissions of any kind from reaching the phone. That would be another way to prevent distracting texts while driving.

According to the National Highway Traffic Safety Administration, eight people are killed each day in crashes involving distracted driving,

CNNMoney Sponsors