Question: how does do not disturb while driving work on iphone?
Answer: With iOS 11, you can enable a special mode called Do Not Disturb While Driving to prevent incoming phone calls, text messages, and notifications from distracting you. With this mode activated, your iPhone can sense when you're in a moving vehicle and stop any notifications in their tracks.