On the surface, Apple's (NASDAQ:AAPL) fiscal 2019 results don't look like the type of numbers that would spark optimism from investors. Total revenue during the period, which ended on Sept. 28, was $260 billion, down from $266 billion in fiscal 2018. Furthermore, earnings per share of $11.89 were about flat compared to the prior year. The iPhone was to blame for this performance, as the important segment saw its revenue decline from $165 billion in fiscal 2018 to $142 billion in fiscal 2019.

Yet the tech giant's shares have surged 63% year to date and have recently been hitting new all-time highs.

What gives?

With Apple's fiscal 2019 behind it, here are four ways the tech giant impressed investors during the year.

Apple CEO Tim Cook kicks off Apple’s March 2019 event.

Apple CEO Tim Cook. Image source: Apple.

1. A return to growth during the second half of the year

Perhaps one of Apple's most notable recent accomplishments was returning to growth in the second half of fiscal 2019, even as iPhone revenue continued to fall by a double-digit percentage rate.

In Apple's fiscal third quarter, the company returned to top-line growth, reporting a 1% year-over-year revenue increase. In fiscal Q4, revenue rose 2% year over year, even as iPhone revenue fell 9% year over year during the period. More importantly, Apple returned to earnings-per-share growth in fiscal Q4, growing the key profitability metric by 4% year over year.

Apple's ability to grow its overall revenue and earnings per share even as its iPhone segment continues to face headwinds highlights how the tech company is becoming less dependent on the segment.

2. Services revenue growth is accelerating

Apple's services revenue has consistently increased at double-digit year-over-year growth rates for years. But the important segment saw accelerated momentum in Apple's fourth quarter of fiscal 2019. Services revenue increased 18% year over year in fiscal Q4, up from 13% growth in the prior quarter.

3. Services' gross margin is improving

Given services' strong growth recently, it's no surprise that the segment has grown to represent a larger percentage of Apple's total revenue. Services represented 18% of fiscal 2019 revenue, up from 15% of revenue in fiscal 2018. What's more notable, however, was its growth as a percentage of gross profit. Services accounted for 30% of Apple's gross profit in fiscal 2019, up from 24% of gross profit in fiscal 2018.

Services' growing impact on Apple's profitability is helped both by services outsize revenue growth and its expanding gross profit margin. In fiscal 2019, services gross profit margin was 64% -- up from 61% in fiscal 2018.

With Apple's more consistent and predictable services business playing a bigger role in the company's operating results, the story for the stock is shifting. Apple is no longer viewed as a company almost entirely dependent on iPhone sales.

4. Wearables revenue is soaring

Finally, there's Apple's fast-growing wearables business. Its wearables products -- Apple Watch, AirPods, and Beats earphones -- have taken off. The nascent business is morphing into a meaningful pillar to Apple's business. "Our wearables business showed explosive growth and generated more annual revenue than two-thirds of the companies in the Fortune 500," said Apple CEO Tim Cook in the company's fiscal fourth-quarter earnings call.

Apple's "wearables, home, and accessories" segment -- the segment that wearables falls under -- saw revenue rise 41% year over year in fiscal 2019.

Going into fiscal 2020, Apple appears to be on better footing than it was at the beginning of fiscal 2019. The midpoint of Apple's revenue guidance range for the first quarter of fiscal 2020 implies a 4% year-over-year increase, suggesting the tech giant's revenue growth rate will accelerate once again.