SAN FRANCISCO, CA - OCTOBER 15:  Jony Ive attends WIRED25 Summit: WIRED Celebrates 25th Anniversary With Tech Icons Of The Past & Future on October 15, 2018 in San Francisco, California.  (Photo by Matt Winkelmeyer/Getty Images for WIRED25  )
Matt Winkelmeyer/Getty Images
SAN FRANCISCO, CA - OCTOBER 15: Jony Ive attends WIRED25 Summit: WIRED Celebrates 25th Anniversary With Tech Icons Of The Past & Future on October 15, 2018 in San Francisco, California. (Photo by Matt Winkelmeyer/Getty Images for WIRED25 )
Now playing
01:01
He designed the iPhone. Now, he's leaving Apple
CNN
Now playing
03:22
Bank of America CEO reveals his top worry about the economy
US Navy
Now playing
01:28
Pentagon confirms UFO video is real, taken by Navy pilot
marte fotos volcan olympus mons sistema solar hope ultravioleta perspectivas mexico_00000411.png
marte fotos volcan olympus mons sistema solar hope ultravioleta perspectivas mexico_00000411.png
Now playing
04:12
Why we are going to Mars
Twitter | @brady9dream
Now playing
02:10
Pet owners pitch their pups to be dog brew's 'Chief Tasting Officer'
Now playing
01:32
Scientists turned spiderwebs into music and it sounds like a nightmare
LONDON, ENGLAND - DECEMBER 07:  A visual representation of the digital Cryptocurrency, Bitcoin on December 07, 2017 in London, England. Cryptocurrencies including Bitcoin, Ethereum, and Lightcoin have seen unprecedented growth in 2017, despite remaining extremely volatile. While digital currencies across the board have divided opinion between financial institutions, and now have a market cap of around 175 Billion USD, the crypto sector coninues to grow, as it continues to see wider mainstreem adoption. The price of one Bitcoin passed 15,000 USD across many exchanges today taking it higher than previous all time highs.  (Photo by Dan Kitwood/Getty Images)
Dan Kitwood/Getty Images
LONDON, ENGLAND - DECEMBER 07: A visual representation of the digital Cryptocurrency, Bitcoin on December 07, 2017 in London, England. Cryptocurrencies including Bitcoin, Ethereum, and Lightcoin have seen unprecedented growth in 2017, despite remaining extremely volatile. While digital currencies across the board have divided opinion between financial institutions, and now have a market cap of around 175 Billion USD, the crypto sector coninues to grow, as it continues to see wider mainstreem adoption. The price of one Bitcoin passed 15,000 USD across many exchanges today taking it higher than previous all time highs. (Photo by Dan Kitwood/Getty Images)
Now playing
03:07
Bitcoin has an energy problem
Accused $50 billion Ponzi scheme swindler Bernard Madoff exits federal court March 10, 2009 in New York City. Madoff was attending a hearing on his legal representation and is due back in court Thursday.  (Photo by Mario Tama/Getty Images)
Mario Tama/Getty Images
Accused $50 billion Ponzi scheme swindler Bernard Madoff exits federal court March 10, 2009 in New York City. Madoff was attending a hearing on his legal representation and is due back in court Thursday. (Photo by Mario Tama/Getty Images)
Now playing
03:11
Bernie Madoff, infamous Ponzi schemer, dead at 82
Now playing
05:18
Coinbase CFO: We're an on-ramp to the crypto economy
A man checks vine buds during the burning of anti-frost candles in the Luneau-Papin wine vineyard in Le Landreau, near Nantes, western France, on April 12, 2021, as temperatures fall below zero degrees celsius.
Sebastien Salom-Gomis/AFP/Getty Images
A man checks vine buds during the burning of anti-frost candles in the Luneau-Papin wine vineyard in Le Landreau, near Nantes, western France, on April 12, 2021, as temperatures fall below zero degrees celsius.
Now playing
01:37
See how French winemakers are trying to save their crops from frost
SUEZ, EGYPT - MARCH 29: The container ship 'Ever Given' is refloated, unblocking the Suez Canal on March 29, 2021 in Suez, Egypt. This morning the container ship came partly unstuck from the shoreline, where it ran aground in the canal last Tuesday, and later resumed its course shortly after 3pm local time. The Suez Canal is one of the world's busiest shipping lanes and the blockage had created a backlog of vessels at either end, raising concerns over the impact on global shipping and supply chains. (Photo by Mahmoud Khaled/Getty Images)
Mahmoud Khaled/Getty Images
SUEZ, EGYPT - MARCH 29: The container ship 'Ever Given' is refloated, unblocking the Suez Canal on March 29, 2021 in Suez, Egypt. This morning the container ship came partly unstuck from the shoreline, where it ran aground in the canal last Tuesday, and later resumed its course shortly after 3pm local time. The Suez Canal is one of the world's busiest shipping lanes and the blockage had created a backlog of vessels at either end, raising concerns over the impact on global shipping and supply chains. (Photo by Mahmoud Khaled/Getty Images)
Now playing
00:57
Egypt seizes Ever Given ship, asks for $900M in compensation
CNN
Now playing
03:06
Hear doctor's message for people with J&J vaccine concerns
Barbers from King's Cutz give haircuts indoors while observing COVID-19 safety restrictions on March 13, 2021 in Los Angeles, California.
Mario Tama/Getty Images
Barbers from King's Cutz give haircuts indoors while observing COVID-19 safety restrictions on March 13, 2021 in Los Angeles, California.
Now playing
01:43
US consumer prices increased in March
Now playing
03:21
Teachers under pandemic stress are quitting: I didn't feel safe
Domino's autonomous vehicle will deliver your pizza
Domino's
Domino's autonomous vehicle will deliver your pizza
Now playing
01:12
Watch this robot deliver a Domino's pizza
Now playing
01:27
See the first community of 3D-printed homes
(CNN Business) —  

iPhone sales continue to decline and, for the first time in years, no longer account for the majority of Apple’s overall revenue.

Apple (AAPL) said Tuesday that iPhone sales for the quarter fell to about $26 billion in the three months ending in June, a decline of nearly 12% from the same period a year earlier.

Even with this decline, Apple managed to grow its overall revenue by a slight 1% from the prior year as the company finds more traction selling wearable devices and digital services, including Apple Pay and Apple Music.

The Services segment, as Apple calls it, hit nearly $11.5 billion in sales for the quarter. Apple’s Wearable, Home and Accessories segment, which includes products like Apple Watch and AirPods, topped $5 billion in quarterly revenue for the first time.

Apple’s iPhone sales accounted for just 48% of its overall revenue for the quarter, highlighting the broader shift underway at the company as it works to diversity its revenue streams.

Shares of Apple rose 4% in after-hours trading Tuesday following the earnings report.

After years of defying gravity, Apple’s core iPhone business has now seen sales decline for three consecutive quarters. The slowing demand for iPhones comes as customers hold onto their smartphones longer and Apple works to reverse a slowdown in China, once its most promising market, amid an ongoing trade war with the United States.

On Tuesday, Apple reported sales in the China region fell 4% from the prior year, an improvement from a more than 20% decline in the prior quarter. On a conference call with analysts after the release of the report, CEO Tim Cook said Apple actually grew in “mainland China.”

Cook cited a “confluence” of factors helping to improve Apple’s business in China, including a government stimulus as well as trade-in and financing programs implemented in its retail stores.

Cook said Apple “couldn’t be happier” with its “progress” in China’s market.

But there is still reason for concern. The trade war has continued to drag on. And last week, President Donald Trump tweeted that he will refuse to exempt Apple from tariffs on parts for the Mac Pro, which Apple is said to be building in China.

“We’ve been making the Mac Pro in the US and we want to continue doing that,” Cook said on the call. “We’re explaining that and hope for a positive outcome.”