Despite a third straight quarter of lower year-over-year sales, Apple is looking ahead to some of its longer-term ventures as future growth drivers, Steve Milunovich of UBS said Wednesday.

The IT hardware analyst said that as technologies for things like self-driving cars and virtual reality continue to improve, he believes Apple will thrive, especially considering the tech giant's significant spending on research and development last quarter.