Earlier quoted context omitted.
iPhone XR was released in 2018, and I got mine in 2019. It will still be supported by iOS 18, which is being released in 2024. 5-6 years of fully functioning hardware with official OS updates is much better than the Android phones I had before it.
Being better doesn't even mean being good (6 is small), and it had no relation to the original point Also you dates are wrong, measure from the last device sale, not the first
So far, it's 6 years (2018-2024), and probably it'll end at 7 years (assuming they drop its support next summer). That's the same number of years as Google and Samsung are currently supporting their flagship models, and it's many years more than e.g. my previous (unrootable) Huawei phone was supported. Compared to the competition, I'd say that number is good.
If we want to push up that number across all players in the market, then we need legislation as a forcing function. I'm all for that – especially legislation that would require manufacturers to allow easy rooting/jailbreaking when the official support ends so that third parties can provide unofficial support. (Like how you can install Linux on old MacBooks when they're not supported.)
> and it had no relation to the original point
I'm not sure how you interpreted the "iOS obsolescence program" then.
> Also you dates are wrong, measure from the last device sale, not the first
It's not wrong, it's a different measure.
If you choose to buy a 3 year old phone, you know that it will be officially supported for 3 less years, and should factor that into your (price)/(lifetime) calculation. I choose to only buy new electronics models (not necessarily the flagship) so that I can replace them less often, and then my measure is the relevant one.