The popular feature brings the smartphone to the car's instrument panel. The CarPlay home screen features many of the recognizable application tiles from the iPhone.
"By launching our best-selling model Elantra, with CarPlay and Android Auto support, we are building on our promise to offer more convenience features for today's modern driver at an affordable price point," said Mike O'Brien, Hyundai Motor America vice president of product and corporate planning, in a statement.
CarPlay lets drivers make calls, get directions, listen to music and access messages.
"CarPlay takes the things you want to do with your iPhone while driving and puts them right on your car's built-in display," Apple said, calling the feature the "Ultimate CoPilot."
Android Auto is available now on the 2015-'16 Hyundai Sonata midsize sedan.
Hyundai said it will have additional information soon on the availability of CarPlay and Android Auto on other models.
Apple recently rolled out a new website that provides car shoppers with a list of every vehicle that features CarPlay or will in the near future.
Edmunds says: Another good reason to put the 2017 Hyundai Elantra high on your shopping list.