As the Department of Transportation (DOTr) and other concerned agencies continue to hash out implementing rules and regulations (IRR) of the Anti-Distracted Driving Act, Apple has chipped in by introducing a new feature that will discourage drivers from handling their iPhones while in transit.

During the Worldwide Developers Conference, Apple unveiled their latest operating system for mobile devices, iOS 11, which will come with many nifty updates including one that will make driving a little safer for iPhone users.

Apple introduces 'Do Not Disturb While Driving' for new iPhone IOS

Among the features in the upcoming software update is a ‘Do Not Disturb While Driving’ mode, which needs to be turned on by the user to work.

If activated, the iPhone will detect when the user is mobile and automatically mute all incoming notifications and keep the screen dark to prevent distractions.

An auto-reply function can be set for contacts in Favorites with a default message indicating that the user is currently driving and cannot respond until they arrive at their destination.

Vehicle passengers will have the ability to indicate on the iPhone that they aren’t driving to continue receiving notifications while on the road.

Drivers will still be able to use the Maps app by Apple but it is still unclear how this new feature may affect third-party applications like Waze and Google Maps.

Apple introduces 'Do Not Disturb While Driving' for new iPhone IOS

Vehicles equipped with Apple CarPlay will continue to enjoy the use of iPhone apps through the vehicle’s infotainment system.