"Struggling" may be overstating it, Apple still basically prints money. But they now also have a significant services business, and they are pushing it pretty hard. I pay apple for Music family subscription and $3/mo storage tier. That's $22/mo. Some people pay more for Apple TV, Photos, Arcade and more substantial storage tiers. That's quite a bit of money every month even if your users go 4 years between phone upgrades because their phones don't feel old.