Not really the same, Apple used to sell more phones than everyone else, it's just that Apple has realized that upgrades are getting slower so they released more expensive phones, and as usual, people buy them as a status symbol.
Apple is going into the direction of SaaS, and most of their revenue/profit growth is going to come from that direction as there are only so many iPhones that you can sell.
Xiaomi does so well because they have a rule of 5% profit from a phone, so margins are small, which is great in getting people to buy into your ecosystem, they make their cash from all the services around it.
You'll probably start seeing Apple do the same in a couple of years, bringing the pricing of their phones to the upper mid range probably, low enough that most middle class and up can afford it, those most likely to consume your premium services, while still being high enough that it's still consider a "premium" thing based on their marketing.