By Lisa Eadicicco, CNN

(CNN) — Apple reported strong iPhone sales and rebound in revenue from China, giving a much-needed boost to two parts of the company’s business that had struggled over the past year.

That better-than-expected performance reassured Wall Street investors that key parts of its business are holding steady as Apple struggles to keep pace with rivals in the artificial intelligence race and navigates President Donald Trump’s looming tariffs.

The iPhone generated $44.5 billion in revenue for the quarter that ended in June, beating analyst expectations of $40 billion and last year’s results of $39.3 billion for the same period. Overall revenue came in $94 billion in the quarter, marking a 10% increase year-over-year.

Sales of iPhones also grew in China, where the company

See Full Page